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
| Name | Type | Description |
|---|---|---|
window | Window | Selected 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
| Name | Type | Description |
|---|---|---|
handle | nint | Selected window handle. |
cornerPreference | [WindowCornerPreference](# | Window corner preference. |
Returns: bool -- true if invocation of native Windows function succeeds.