title: WPF: how to check what template and style is currently used on given control from code-behind?
body: <p>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?</p>
  
  <p>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.</p>