在任务栏应用程序悬停时显示控件
Show controls on taskbar application hover
在 UWP 中有什么方法可以像 spotify 一样构建悬停 UI:
我知道在 UWP 中我们有系统控件可以在应用程序处于后台时显示控件,我们可以使用它来构建相同的体验吗?如果可以,我该怎么做。
我已经添加了 <uap3:Capability Name="backgroundMediaPlayback" />
功能,但出现以下错误。
Error APPX0501 Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 62, Column 6, Reason: Element '{schemas.microsoft.com/appx/manifest/uap/windows10/3}Capability' is unexpected according to content model of parent element '{schemas.microsoft.com/appx/manifest/foundation/windows10}Capabilities'. Expecting: {schemas.microsoft.com/appx/manifest/foundation/windows10}DeviceCapability <Packing-Path>\bin\x64\Debug\AppxManifest.xml 1
can we use that to build same experience, if yes then how can i do it.
当然,您可以通过添加后台媒体播放清单功能来启用后台音频。当您的应用程序最小化时,播放控件将显示。更多详情请参考Play media in the background
这是official code sample,你可以参考。
在 UWP 中有什么方法可以像 spotify 一样构建悬停 UI:
我知道在 UWP 中我们有系统控件可以在应用程序处于后台时显示控件,我们可以使用它来构建相同的体验吗?如果可以,我该怎么做。
我已经添加了 <uap3:Capability Name="backgroundMediaPlayback" />
功能,但出现以下错误。
Error APPX0501 Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 62, Column 6, Reason: Element '{schemas.microsoft.com/appx/manifest/uap/windows10/3}Capability' is unexpected according to content model of parent element '{schemas.microsoft.com/appx/manifest/foundation/windows10}Capabilities'. Expecting: {schemas.microsoft.com/appx/manifest/foundation/windows10}DeviceCapability <Packing-Path>\bin\x64\Debug\AppxManifest.xml 1
can we use that to build same experience, if yes then how can i do it.
当然,您可以通过添加后台媒体播放清单功能来启用后台音频。当您的应用程序最小化时,播放控件将显示。更多详情请参考Play media in the background 这是official code sample,你可以参考。