UtilThemingSetDesktopWallpaper Method

Sets the current desktop wallpaper.

Definition

Namespace: DevCase.Core.Windows.Theming
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void SetDesktopWallpaper(
	string imagePath,
	WallpaperStyle style
)

Parameters

imagePath  String
The wallpaper filepath.
style  WallpaperStyle
The wallpaper style to apply.

Exceptions

ArgumentNullException imagepath
InvalidEnumArgumentException style
Exception The current operating system doesn't support a fitted or filled wallpaper.
Win32Exception

See Also