如何在我的 Windows 通用应用程序中定义 TaskbarItemInfo?
我想在显示应用程序缩略图时添加自定义媒体播放按钮。
最佳答案
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
关于windows-10 - Windows 通用应用程序中的 TaskbarItemInfo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31499418/