I have a ListBox and a lot of templates that override/extend each other. How can I check from code-behind, what template currently affects my ListBox?
I can access ListBox from code-behind, its Template property gives type of control this template is for, how to get Name of this template? Same about styles.