lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.74k stars 756 forks source link

The light mode of the backend code of the bug #1258

Closed AmirMohammadPX closed 1 month ago

AmirMohammadPX commented 1 month ago

Describe the bug

The backend codes are problematic for light mode but work well for dark mode

        Loaded += (sender, args) =>
        {
            Wpf.Ui.Appearance.ApplicationThemeManager.Apply(
             Wpf.Ui.Appearance.ApplicationTheme.Light, // Theme type
             Wpf.Ui.Controls.WindowBackdropType.Mica,  // Background type
             true                                      // Whether to change accents automatically
           );
        };            

To Reproduce

-

Expected behavior

-

Screenshots

image

OS version

Windows 11

.NET version

dotnet 8

WPF-UI NuGet version

3.0.5

Additional context

No response

Ledgerbiggg commented 1 month ago

Because using WindowStyle="None" with native window forms may cause issues

I suggest you use

<ui:FluentWindow>
</ui:FluentWindow>

to replace

<Window>
</Window>
AmirMohammadPX commented 1 month ago

@Ledgerbiggg My problem is solved, thank you very much