Setting the wallpaper is easy enough.
await Windows.System.UserProfile.UserProfilePersonalizationSettings.Current.TrySetWallpaperImageAsync(file);
But I cannot figure out how to set a wallpaper to "span" for example. Is this just not possible for a UWP app?
This is a new API since Windows Universal 10 platform, and there is only one parameter(StorageFile) in this method, you can refer to UserProfilePersonalizationSettings class.
Before this, there is no method to set wallpaper for win8.x app. As far as I know, there is no way to set wallpaper as Span fit mode programmatically in UWP app.
Just tested this method, seems it will set the wallpaper to the fit of "Fill" as default.
My suggestion is, you may submit a request to add this new features for developing through the Windows Feedback tool.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With