Skip to content

UnsafeNativeMethods.ApplyWindowLegacyAcrylicEffect(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 ApplyWindowLegacyAcrylicEffect(Window? window)
  • 2. public static bool ApplyWindowLegacyAcrylicEffect(nint handle)

1. Overload

public static bool ApplyWindowLegacyAcrylicEffect(Window? window)

Summary: Tries to apply legacy Acrylic effect for the selected Window.

Parameters

NameTypeDescription
windowWindow?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 ApplyWindowLegacyAcrylicEffect(nint handle)

Summary: Tries to apply legacy Acrylic effect for the selected Window.

Parameters

NameTypeDescription
handlenintWindow handle

Returns: bool -- true if invocation of native Windows function succeeds.