windows-store-apps - Windows UWP 作为屏幕保护程序?

标签 windows-store-apps windows-10 uwp screensaver

在 Windows 10 上,可以启动 UWP 作为屏幕保护程序吗?如果是这样,您如何向操作系统注册您的应用程序,以便在屏幕保护程序对话框中列出它?

(Windows 8 商店应用不能做屏保。我找不到有关 UWP 的任何信息)

最佳答案

很抱歉让您失望了,但是不行,您不能将您的 UWP 应用设置为屏幕保护程序提供程序。

你可以做的是让用户让你的应用程序控制锁定屏幕或壁纸图像。即使在使用 UserProfilePersonalizationSettings 在后台任务中运行时,UWP 应用程序也能够设置这些图像。类(class):

// Lock Screen
await UserProfilePersonalizationSettings.Current.TrySetLockScreenImageAsync(StorageFile);

// Wallpaper
await UserProfilePersonalizationSettings.Current.TrySetWallpaperImageAsync(StorageFile);

关于windows-store-apps - Windows UWP 作为屏幕保护程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34686041/

相关文章:

windows-store-apps - Application Insights 不工作 - 套接字异常

c# - Deployment.Current.Dispatcher.BeginInvoke 如何在 Windows 应用商店应用程序中工作?

c# - 无法在 Win 8 和 Win Phone 8 的可移植类库中使用 await

wpf - 从 Installshield 更改 UWP 应用的安装位置

jenkins - 在命令行中构建 UWP 应用程序(使用 MSBUILD)

windows-8 - 从 3DS max 导出 3D 模型用于 Windows 应用商店应用程序

ios - Macbook 中的 WinObjC

c# - 从源代码管理丢失后如何生成新的 .pfx 文件?

.net - 如何解决 windows-10 webbrowser shellfolderview 滚动错误?

c# - 通用 Windows (UWP) 范围 slider