Skip to content

UnsafeNativeMethods.ApplyWindowCornerPreference(Window, WindowCornerPreference) 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 ApplyWindowCornerPreference(Window window, WindowCornerPreference cornerPreference)
  • 2. public static bool ApplyWindowCornerPreference(nint handle, WindowCornerPreference cornerPreference)

1. Overload

public static bool ApplyWindowCornerPreference(Window window, WindowCornerPreference cornerPreference)

Summary: Tries to set the Window corner preference.

Parameters

NameTypeDescription
windowWindowSelected window.
cornerPreference[WindowCornerPreference](#Window corner preference.

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

2. Overload

public static bool ApplyWindowCornerPreference(nint handle, WindowCornerPreference cornerPreference)

Summary: Tries to set the corner preference of the selected window.

Parameters

NameTypeDescription
handlenintSelected window handle.
cornerPreference[WindowCornerPreference](#Window corner preference.

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