[英]Is it possible to change desktop wallpaper from Windows8.1 app?
I've searched a lot about this topic and couldn't find a good solution, so: 我搜索了很多关于这个主题的内容并且找不到一个好的解决方案,所以:
Is there a way to change the desktop wallpaper from within a windows8.1 app using c#/xaml? 有没有办法使用c#/ xaml从windows8.1应用程序中更改桌面墙纸? eg.
例如。 by simply providing an image?
通过简单地提供图像?
As far as i know Win 8 Apps are Sandboxed 据我所知,Win 8 应用程序是Sandboxed
You have to Subscribe to everything not included in that Sandbox like using Audio output, the Webcam etc. so the Windows Appstore can show a user what your App wants to Access. 您必须订阅Sandbox中未包含的所有内容,例如使用音频输出,网络摄像头等,以便Windows Appstore可以向用户显示您的应用程序想要访问的内容。
If Windows 8 doesn't provide "Desktop Control" as Subscribable Interface you cannot do this in an App 如果Windows 8不提供“Desktop Control”作为Subscribable Interface,则无法在App中执行此操作
(I have no Win 8+VisualStudio here so i can't test it right now) (我这里没有Win 8 + VisualStudio所以我现在无法测试它)
You should look into creating a Theme Pack in Windows 8 您应该考虑在Windows 8中创建主题包
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773190(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/windows/desktop/bb773190(v=vs.85).aspx
It looks like LaunchFileAsync() blocks certain file types and .theme and .deskthemepack are blocked. 它看起来像LaunchFileAsync()阻止某些文件类型和.theme和.deskthemepack被阻止。 You will need have the user download the file to their desktop and then double-click on the file.
您需要让用户将文件下载到他们的桌面,然后双击该文件。
There is currently no way to set the desktop background - but you can set the lock screen background in a Windows Store app. 目前无法设置桌面背景 - 但您可以在Windows应用商店应用中设置锁定屏幕背景。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.