Skip to content

UnsafeNativeMethods class

Defined in

Namespace: CrissCross.WPF.UI.Interop Assembly: CrissCross.WPF.UI.dll Full name: CrissCross.WPF.UI.Interop.UnsafeNativeMethods Modifiers: public static

Summary

        A set of dangerous methods to modify the appearance.
        

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Methods

NameSummary
static ApplyWindowCornerPreferenceTries to set the Window corner preference.
static RemoveWindowDarkModeTries to remove ImmersiveDarkMode effect from the Window.
static ApplyWindowDarkModeTries to apply ImmersiveDarkMode effect for the Window.
static RemoveWindowTitlebarContentsTries to remove titlebar from selected Window.
static ApplyWindowBackdropTries to apply selected backdrop type for window handle.
static IsWindowHasBackdropTries to determine whether the provided Window has applied legacy backdrop effect.
static IsWindowHasLegacyMicaTries to determine whether the provided Window has applied legacy Mica effect.
static ApplyWindowLegacyMicaEffectTries to apply legacy Mica effect for the selected Window.
static ApplyWindowLegacyAcrylicEffectTries to apply legacy Acrylic effect for the selected Window.
static GetDwmColorTries to get currently selected Window accent color.
static RemoveWindowCaption
static ExtendClientAreaIntoTitleBar
static IsCompositionEnabledChecks whether the DWM composition is enabled.
static IsValidWindowChecks if provided pointer represents existing window.
Inherited members