Table of Contents

Class WindowBackdrop

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

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 IntPtr

The window handle to which the backdrop effect will be applied.

backdropType WindowBackdropType

The type of backdrop effect to apply. This determines the visual appearance of the window's backdrop.

Returns

bool

true if the operation was successful; otherwise, false.

ApplyBackdrop(Window?, WindowBackdropType)

Applies a backdrop effect to the selected Window.

public static bool ApplyBackdrop(Window? window, WindowBackdropType backdropType)

Parameters

window Window

The window to which the backdrop effect will be applied.

backdropType WindowBackdropType

The type of backdrop effect to apply. Determines the visual appearance of the window's backdrop.

Returns

bool

true if the operation was successful; otherwise, false.

IsSupported(WindowBackdropType)

Checks whether the selected backdrop type is supported on current platform.

public static bool IsSupported(WindowBackdropType backdropType)

Parameters

backdropType WindowBackdropType

Returns

bool

true if the selected backdrop type is supported on current platform.

RemoveBackdrop(IntPtr)

Tries to remove all effects if they have been applied to the hWnd.

public static bool RemoveBackdrop(IntPtr hWnd)

Parameters

hWnd IntPtr

Pointer to the window handle.

Returns

bool

RemoveBackdrop(Window?)

Tries to remove backdrop effects if they have been applied to the Window.

public static bool RemoveBackdrop(Window? window)

Parameters

window Window

The window from which the effect should be removed.

Returns

bool

RemoveBackground(Window?)

Tries to remove background from Window and it's composition area.

public static bool RemoveBackground(Window? window)

Parameters

window Window

Window to manipulate.

Returns

bool

true if operation was successful.

RemoveTitlebarBackground(Window?)

public static bool RemoveTitlebarBackground(Window? window)

Parameters

window Window

Returns

bool