title: WPF Trigger based on Object Type
body: <p>Is there a way to do a comparison on object type for a trigger?</p>
  
  <pre><code>&lt;DataTrigger Binding="{Binding SelectedItem}" Value="SelectedItem's Type"&gt;
  &lt;/DataTrigger&gt;
  </code></pre>
  
  <p>Background: I have a Toolbar and I want to Hide button's depending on what subclass is currently set to the selected item object.</p>
  
  <p>Thanks</p>