How i can override Selector="Button:pointerover /template/ ContentPresenter" at runtime? #18037
-
Im setting an template on a AppStyle.axaml for all buttons in the app
But now i have the problem that i want to change the colors based on a manual hex color user input on a specific Button. I can change all regular properties without a problem by code on each button individually, foreground, background, etc. But i have no idea of how to replace the values set here.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Easiest way is to set values via DynamicResource and change this resource |
Beta Was this translation helpful? Give feedback.
-
I ended up doing it this way. Once i found the the documentation
|
Beta Was this translation helpful? Give feedback.
I ended up doing it this way. Once i found the the documentation