-
-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UiApplication to fix Application.Current null #851
UiApplication to fix Application.Current null #851
Conversation
I added the |
Just as a comment I can confirm this works when using WPF-UI in a plugin context where the UI controls are in a project outside of the runtime resolved assembly (if the UI controls are in the same assembly then you can simply add an |
Nice 🤗 |
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
If the
Application.Current
is null theWpf.Ui
library does not work, too manyApplication.Current
are hard coded.Swap
Application.Current
with a custom classUiApplication.Current
gonna fix the issue and gonna work the same ifApplication.Current
is not null.Issue reference: #837
What is the new behavior?
Application.Current
is not null in the main application.Wpf.Ui.Demo.Console
, the idea is to create someApplyResourses
in theWpf.Ui
in the next PR.)Other information
This PR has a project with a simple implementation when the
Application.Current
is null, a console application creates a simple View with the Theme.