Windows通用应用程序中的TaskbarItemInfo

时间:2015-07-19 08:42:29

标签: windows-10 win-universal-app taskbar

如何在Windows通用应用程序中定义TaskbarItemInfo?

我想在显示应用缩略图时添加自定义媒体播放按钮。

1 个答案:

答案 0 :(得分:-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