UtilThemingSetDesktopWallpaper Method
Sets the current desktop wallpaper.
Namespace: DevCase.Core.Windows.ThemingAssembly: 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
)
public:
static void SetDesktopWallpaper(
String^ imagePath,
WallpaperStyle style
)
static member SetDesktopWallpaper :
imagePath : string *
style : WallpaperStyle -> unit
No code example is currently available or this language may not be supported.
Parameters
- imagePath String
-
The wallpaper filepath.
- style WallpaperStyle
-
The wallpaper style to apply.
ArgumentNullException
|
imagepath
|
InvalidEnumArgumentException
|
style
|
Exception
|
The current operating system doesn't support a fitted or filled wallpaper.
|
Win32Exception
|
|