I have a huge XAML theme with multiple control templates and styles. I need to find out which styles from this list are being applied to which of my controls. I see that the style of my control has changed, but I can't find the source template/style for that change. For example, I have a Grid and I see that the background has changed, but I can't find the the templates/styles that have that Grid as its TargetType with any of that Grid's parameters.
Put simply, where you declare a style affects where the style can be applied. For example, if you declare the style in the root element of your app definition XAML file, the style can be used anywhere in your app. If you declare the style in one of the app's XAML files, the style can be used only in that XAML file.
Use the Snoop tool that can show you all your layout hierarchy and if element's attribute was set locally or inherited.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With