diff --git a/src/Wpf.Ui/Controls/Window/WindowBackdrop.cs b/src/Wpf.Ui/Controls/Window/WindowBackdrop.cs index 86d0a114a..c19078d11 100644 --- a/src/Wpf.Ui/Controls/Window/WindowBackdrop.cs +++ b/src/Wpf.Ui/Controls/Window/WindowBackdrop.cs @@ -90,12 +90,8 @@ public static bool ApplyBackdrop(IntPtr hWnd, WindowBackdropType backdropType) // 22H1 if (!Win32.Utilities.IsOSWindows11Insider1OrNewer) { - if (backdropType == WindowBackdropType.Mica || backdropType == WindowBackdropType.Auto) + if (backdropType != WindowBackdropType.None ) return ApplyLegacyMicaBackdrop(hWnd); - - if (backdropType == WindowBackdropType.Acrylic) - return ApplyLegacyAcrylicBackdrop(hWnd); - return false; } diff --git a/src/Wpf.Ui/Converters/IconSourceElementConverter.cs b/src/Wpf.Ui/Converters/IconSourceElementConverter.cs index d50bbb5d1..fecbbc2f6 100644 --- a/src/Wpf.Ui/Converters/IconSourceElementConverter.cs +++ b/src/Wpf.Ui/Converters/IconSourceElementConverter.cs @@ -8,7 +8,7 @@ namespace Wpf.Ui.Converters; -internal class IconSourceElementConverter : IValueConverter +public class IconSourceElementConverter : IValueConverter { public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) {