-
Notifications
You must be signed in to change notification settings - Fork 710
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
Question: can individual WinUI controls be used? #3171
Comments
We link the styles by adding XamlControlsThemeResources in app.xaml. You could not add that to your app resources and instead choose the specific styles you want to use. You can pick the styles from the repo or from the generic.xaml file in the NuGet package. would that work ? @jevansaks or @MikeHillberg might have some ideas. |
Would I be able to pick those styles and use it in a control only (where I host the WinUI component)? If so, I guess that would work then. |
@StefanKoell You shoud be able to. You can put the styles you want to use in the resource dictionary of the control which delimits the scope where you want to have these styles applied. That way, the styles won't be applied to controls outside of the scope of the enclosing control. |
That sounds great. I then only hope that there's proper documentation on how to do that (which styles to include). Thanks! |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
As requested here: #2867
Will there be a way to pull in individual WinUI controls without applying the style to the whole application? the reason I ask this is, that I am also dependent on 3rd party UI controls (e.g. docking library) and applying styles on a global scope would mess with their styles.
The text was updated successfully, but these errors were encountered: