How can I confidently determine if the following ControlTemplate used in a WPF application? The file name is "CheckBoxTemplates.xaml" and is located in a different assembly than the main application. Please note: there were no results when searching for the file name and resource key. In addition, finding a solution for a resource key is not reliable. Especially when there are five resource dictionary files containing the same key.
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mwt="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Luna"> <Style x:Key="invertedCheckBox" TargetType="CheckBox"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="CheckBox" ...
Additional Information
While user2250152 answser is true for the above XAML. It does not reliably determine if a style is being used. I am talking about this because when I used the technique for a different style, I found five resource dictionary files containing the same key. Therefore, we need to consider how I can reliably determine which style is used with specific keys using duplicate keys.
source share