Class WindowBackdrop
Applies the chosen backdrop effect to the selected window.
public static class WindowBackdrop
- Inheritance
-
WindowBackdrop
- Inherited Members
Methods
ApplyBackdrop(IntPtr, WindowBackdropType)
Applies backdrop effect to the selected window handle based on the specified backdrop type.
public static bool ApplyBackdrop(IntPtr hWnd, WindowBackdropType backdropType)
Parameters
hWnd
IntPtrThe window handle to which the backdrop effect will be applied.
backdropType
WindowBackdropTypeThe type of backdrop effect to apply. This determines the visual appearance of the window's backdrop.
Returns
ApplyBackdrop(Window?, WindowBackdropType)
Applies a backdrop effect to the selected Window.
public static bool ApplyBackdrop(Window? window, WindowBackdropType backdropType)
Parameters
window
WindowThe window to which the backdrop effect will be applied.
backdropType
WindowBackdropTypeThe type of backdrop effect to apply. Determines the visual appearance of the window's backdrop.
Returns
IsSupported(WindowBackdropType)
Checks whether the selected backdrop type is supported on current platform.
public static bool IsSupported(WindowBackdropType backdropType)
Parameters
backdropType
WindowBackdropType
Returns
RemoveBackdrop(IntPtr)
Tries to remove all effects if they have been applied to the hWnd
.
public static bool RemoveBackdrop(IntPtr hWnd)
Parameters
hWnd
IntPtrPointer to the window handle.
Returns
RemoveBackdrop(Window?)
Tries to remove backdrop effects if they have been applied to the Window.
public static bool RemoveBackdrop(Window? window)
Parameters
window
WindowThe window from which the effect should be removed.
Returns
RemoveBackground(Window?)
Tries to remove background from Window and it's composition area.
public static bool RemoveBackground(Window? window)
Parameters
window
WindowWindow to manipulate.
Returns
RemoveTitlebarBackground(Window?)
public static bool RemoveTitlebarBackground(Window? window)
Parameters
window
Window