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?

Was it helpful?

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
scroll top