UnsafeNativeMethods.RemoveWindowDarkMode(Window?) method¶
Defined in
Type: UnsafeNativeMethods
Namespace: CrissCross.WPF.UI.Interop
Assembly: CrissCross.WPF.UI.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public static bool RemoveWindowDarkMode(Window? window) - 2.
public static bool RemoveWindowDarkMode(nint handle)
1. Overload¶
public static bool RemoveWindowDarkMode(Window? window)
Summary: Tries to remove ImmersiveDarkMode effect from the Window.
Parameters
| Name | Type | Description |
|---|---|---|
window | Window? | The window to which the effect is to be applied. |
Returns: bool -- true if invocation of native Windows function succeeds.
2. Overload¶
public static bool RemoveWindowDarkMode(nint handle)
Summary: Tries to remove ImmersiveDarkMode effect from the window handle.
Parameters
| Name | Type | Description |
|---|---|---|
handle | nint | Window handle. |
Returns: bool -- true if invocation of native Windows function succeeds.