简体   繁体   English

是否可以从Windows8.1应用程序更改桌面墙纸?

[英]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.

相关问题 在Windows8.1中更改发布的项目安装目录 - Change Published Project Install Directory in Windows8.1 是否可以在同一解决方案中开发Windows 8.1桌面和商店应用程序? - Is it possible to develop for Windows 8.1 Desktop and Store App in the same solution? 使用FileOpenPicker windows8.1上传照片 - upload photo using the FileOpenPicker windows8.1 从C#WPF更改Windows 8.1桌面的方向 - Change orientation of Windows 8.1 Desktop from C# wpf 自动更换桌面墙纸 - Automatic desktop wallpaper change 将约会转换为Icalendar Windows8.1 C# - converting appointment to Icalendar windows8.1 c# Windows8.1中的sqlite3数据库System.BadImageFormatException - sqlite3 database System.BadImageFormatException in windows8.1 如何以编程方式更改我的 Windows 桌面墙纸? - How do I change my Windows desktop wallpaper programmatically? 以编程方式更改 Windows 10 壁纸(限制使用“组策略中的活动桌面壁纸”) - Change Windows 10 wallpaper programmatically (Restricted using 'Active Desktop Wallpaper in Group Policy') 当CapturePhotoToStreamAsync时,CameraCapture Windows8.1和WP 8.1会禁用系统声音 - CameraCapture Windows8.1 and WP 8.1 disable system sound when CapturePhotoToStreamAsync
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM