3
A
回答
-1
Nikolay,它们默认是禁用的。你必须通过声明明确其开启/关闭:
SystemMediaTransportControls.GetForCurrentView().ButtonPressed += SystemControls_ButtonPressed;
SystemMediaTransportControls.GetForCurrentView().IsPlayEnabled = true;
SystemMediaTransportControls.GetForCurrentView().IsPauseEnabled = true;
参考见本:https://msdn.microsoft.com/en-us/library/windows/apps/xaml/mt228338.aspx
+0
这不起作用 –
相关问题
- 1. 应用程序在Windows Phone 8中的应用程序通信
- 2. 在通用的Windows应用程序
- 3. Windows应用程序和Android应用程序之间的通信
- 4. Windows通用应用程序 - 应用程序内购买
- 5. Windows通用应用程序 - 清除应用程序内购买
- 6. 从通用Windows应用程序打开外部应用程序
- 7. 从Windows 10通用应用程序启动Cordova应用程序
- 8. 通用Windows应用程序到Win32应用程序
- 9. Windows 10通用Javascript应用程序Windows Mobile 10中的SQLite
- 10. Xcode中的通用iOs应用程序和基于Windows的应用程序
- 11. Windows通用应用程序和热键
- 12. SQLite支持通用Windows应用程序
- 13. Windows Phone 8.1到通用应用程序
- 14. Windows 8.1通用应用程序文档
- 15. MediaPlayer通用Windows应用程序
- 16. Windows 8.1通用应用程序参考
- 17. 通用应用程序Windows Phone方向
- 18. 通用Windows应用程序中的徽章通知
- 19. Windows窗体应用程序可以与Windows通用应用程序交互吗?
- 20. 将Windows 8 Metro应用程序移植到Windows 10通用应用程序
- 21. 禁用适用于通用Windows应用程序的应用程序大小
- 22. 如何通过通用Windows应用程序启动警报应用程序
- 23. 适用于Windows的应用程序配置文件通用应用程序
- 24. 通用Windows 8.1中的用户签名应用程序
- 25. Windows 8应用程序通过Windows打开外部应用程序IE
- 26. 开始应用商店 - 用于Windows Phone 8.1和Windows 8.1应用程序的通用应用程序
- 27. 在适用于Windows Phone的通用Windows应用程序中设置应用程序大小
- 28. Windows通用应用程序的多个实例(Windows 10)
- 29. Windows 8.1中的通用应用程序的WebClient替代
- 30. Windows通用应用程序中的Image/StackPanel的阴影效果
你得到的这条底线? – mikeysee
我正在尝试完成相同的操作。我已经在应用清单中声明它将播放背景音频,并且不知何故,当我将鼠标悬停在任务栏中的应用程序上时,标准播放按钮会显示,但它们始终被禁用。 –