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.47k stars 725 forks source link

Update UiApplication.cs #1082

Closed ricaun closed 4 months ago

ricaun commented 4 months ago

Ignore Application without Library Resources

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

If the Application.Current does not contain any Wpf.Ui; resource that application still is used , this PR checks the resources and ignore the Application that does not use Wpf.Ui;.

Issue Number: #1081

What is the new behavior?

By default nothing gonna change: if the MyApp\App.xaml have resources related to the Wpf.Ui library the Application.Current is used like before.

This PR only impact when the library is running outside of the desktop app context.

Other information

ricaun commented 4 months ago

@pomianowski Great 👏🏻 Would be amazing if you release or prerelease in the nuget a new version. 🤗