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应用程序和Android应用程序之间的通信
- 2. Windows通用应用程序 - 清除应用程序内购买
- 3. Windows通用应用程序 - 应用程序内购买
- 4. 通用Windows应用程序到Win32应用程序
- 5. Windows 10通用Javascript应用程序Windows Mobile 10中的SQLite
- 6. Xcode中的通用iOs应用程序和基于Windows的应用程序
- 7. Windows 8.1通用应用程序参考
- 8. Windows Phone 8.1到通用应用程序
- 9. Windows 8.1通用应用程序文档
- 10. 通用Windows应用程序中的徽章通知
- 11. Windows窗体应用程序可以与Windows通用应用程序交互吗?
- 12. 将Windows 8 Metro应用程序移植到Windows 10通用应用程序
- 13. 禁用适用于通用Windows应用程序的应用程序大小
- 14. 如何通过通用Windows应用程序启动警报应用程序
- 15. 通用Windows 8.1中的用户签名应用程序
- 16. 适用于Windows的应用程序配置文件通用应用程序
- 17. Windows 8应用程序通过Windows打开外部应用程序IE
- 18. 在适用于Windows Phone的通用Windows应用程序中设置应用程序大小
- 19. 开始应用商店 - 用于Windows Phone 8.1和Windows 8.1应用程序的通用应用程序
- 20. Windows通用应用程序的多个实例(Windows 10)
- 21. Windows 8.1中的通用应用程序的WebClient替代
- 22. Windows通用应用程序中的Image/StackPanel的阴影效果
- 23. 如何获取Windows Phone通用应用程序的应用程序版本?
- 24. Web应用程序和Windows通用应用程序的主要区别
- 25. windows应用程序
- 26. Windows应用程序
- 27. 通用Windows应用程序中的ViewModel-View绑定
- 28. MessageDialog忽略了Windows Phone通用应用程序中的RequestedTheme
- 29. 通用Windows应用程序中的DescriptionAttribute在哪里?
- 30. 通用Windows应用程序:ListViewItem中的两个按钮
你得到的这条底线? – mikeysee
我正在尝试完成相同的操作。我已经在应用清单中声明它将播放背景音频,并且不知何故,当我将鼠标悬停在任务栏中的应用程序上时,标准播放按钮会显示,但它们始终被禁用。 –