How do I know which style is applied to a control?

I have a huge XAML theme with several templates and management styles. I need to find out which styles from this list apply to which of my controls. I see that the style of my control has changed, but I cannot find the original template / style for this change. For example, I have a Grid, and I see that the background has changed, but I can not find templates / styles that have this Grid as a TargetType with any of these Grid parameters.

+6
styles wpf
source share
1 answer

Use the Snoop tool , which can show you your entire layout hierarchy, and if the element attribute was set locally or inherited.

+3
source share

All Articles