26 references to WindowBackdropType
PresentationFramework (26)
System\Windows\Appearance\WindowBackdropManager.cs (17)
13
internal static bool IsSupported(
WindowBackdropType
backdropType)
17
WindowBackdropType
.Auto => Utility.IsWindows11_22H2OrNewer,
18
WindowBackdropType
.TabbedWindow => Utility.IsWindows11_22H2OrNewer,
19
WindowBackdropType
.MainWindow => Utility.IsOSWindows11OrNewer,
20
WindowBackdropType
.TransientWindow => Utility.IsOSWindows7OrNewer,
21
WindowBackdropType
.None => true,
26
internal static bool SetBackdrop(Window window,
WindowBackdropType
backdropType)
52
private static bool SetBackdropCore(IntPtr hwnd,
WindowBackdropType
backdropType)
59
if (backdropType ==
WindowBackdropType
.None)
69
private static bool ApplyBackdrop(IntPtr hwnd,
WindowBackdropType
backdropType)
75
WindowBackdropType
.Auto => Standard.DWMSBT.DWMSBT_TABBEDWINDOW,
76
WindowBackdropType
.TabbedWindow => Standard.DWMSBT.DWMSBT_TABBEDWINDOW,
77
WindowBackdropType
.MainWindow => Standard.DWMSBT.DWMSBT_MAINWINDOW,
78
WindowBackdropType
.TransientWindow => Standard.DWMSBT.DWMSBT_TRANSIENTWINDOW,
88
UpdateGlassFrame(hwnd,
WindowBackdropType
.None);
124
private static bool UpdateGlassFrame(IntPtr hwnd,
WindowBackdropType
backdropType)
127
if (backdropType !=
WindowBackdropType
.None)
System\Windows\ThemeManager.cs (4)
278
WindowBackdropManager.SetBackdrop(window,
WindowBackdropType
.MainWindow);
284
WindowBackdropManager.SetBackdrop(window,
WindowBackdropType
.None);
304
WindowBackdropManager.SetBackdrop(window,
WindowBackdropType
.None);
308
WindowBackdropManager.SetBackdrop(window,
WindowBackdropType
.MainWindow);
System\Windows\Window.cs (5)
3148
internal
WindowBackdropType
WindowBackdropType
3150
get => (
WindowBackdropType
)GetValue(WindowBackdropTypeProperty);
3159
typeof(
WindowBackdropType
),
3162
WindowBackdropType
.MainWindow,
3177
WindowBackdropManager.SetBackdrop(window, (
WindowBackdropType
)e.NewValue);