-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
How can I manipulate individual properties of a style Class? #630
Comments
Yeah, you can't use static resource from a different file in the current state of the application because the resources haven't been built and compiled yet. Can you try to define <Style TargetType="Button" Class="MyOutlinedButton" BaseResourceKey="BaseButtonStyle"> But |
Hi! Yes, I can do this, but this will of course apply a border to all buttons, and not just use a different border width on the outline buttons. |
Added a pull for this |
Awesome! Thank you so much, for the immediate support! |
Can be closed |
Hi there!
I'm having a hard time adjusting individual properties on, as an example,
OutlinedButton
style class. I want to change the border width for all "OutlineButtons". But my changes either won't get applied, or I loose the existing outline button properties which I want to retain.I know I can use the
StyleResource.Overrides
to overwrite entires styles. But that's not what I want. I'd like to extend an existing style class. How would I do that, without creating a second styleClass="ThickBorder"
which I would have to apply basically everywhere.In App.xaml
In Theme.xaml
Any help is highly appreciated. Thank you guys!
The text was updated successfully, but these errors were encountered: