WPF - Implicitly style control within another control
-
19-09-2019 - |
Question
Is it possible in WPF to implictly style a control that sits within another control?
For example, style an image within a button, without styling all images?
Solution
You can insert the style into the ResourceDictionary of the Button. Then it only applies to contained images.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow