Table of Contents

Class WindowBackdropConfig

Namespace
Whim
Assembly
Whim.dll
WinUI supports different backdrops/materials, depending on the OS version. To see the different materials available, see https://learn.microsoft.com/en-us/windows/apps/design/signature-experiences/materials. The different materials support differing levels and style of transparency. This config lets you specify which backdrop to use for a given Whim window.
public record WindowBackdropConfig : IEquatable<WindowBackdropConfig>
Inheritance
WindowBackdropConfig
Implements
Inherited Members

Constructors

WindowBackdropConfig(BackdropType, bool)

WinUI supports different backdrops/materials, depending on the OS version. To see the different materials available, see https://learn.microsoft.com/en-us/windows/apps/design/signature-experiences/materials. The different materials support differing levels and style of transparency. This config lets you specify which backdrop to use for a given Whim window.
public WindowBackdropConfig(BackdropType Backdrop, bool AlwaysShowBackdrop = true)

Parameters

Backdrop BackdropType
The backdrop type to use.
AlwaysShowBackdrop bool
By default, WinUI will disable the backdrop when the window loses focus. Whim overrides this setting. Set this to false to disable the backdrop when the window loses focus.

Properties

AlwaysShowBackdrop

By default, WinUI will disable the backdrop when the window loses focus. Whim overrides this setting. Set this to false to disable the backdrop when the window loses focus.
public bool AlwaysShowBackdrop { get; init; }

Property Value

bool

Backdrop

The backdrop type to use.
public BackdropType Backdrop { get; init; }

Property Value

BackdropType