title: WPF Visibility of a UI element based on combo selection
body: <p>Trying to show a label only when a certain item in a combo is selected. Code should pretty much explain it.</p>
  
  <pre><code>    &lt;ComboBox Name="comboMyCombo"&gt;
          &lt;ComboBoxItem&gt;Don't show the label&lt;/ComboBoxItem&gt;
          &lt;ComboBoxItem&gt;Show the label&lt;/ComboBoxItem&gt;
      &lt;/ComboBox&gt;
  
      &lt;Label Visibility="Collapsed"&gt;This is my label
          &lt;Label.Style&gt;
              &lt;Style&gt;
                  &lt;Style.Triggers&gt;
                      &lt;DataTrigger 
                              Binding="{Binding ElementName=comboMyCombo, Path=SelectedValue}" Value="Show the label"&gt;
                          &lt;Setter Property="Label.Visibility" Value="Visible"&gt;&lt;/Setter&gt;
                      &lt;/DataTrigger&gt;
                  &lt;/Style.Triggers&gt;
              &lt;/Style&gt;
          &lt;/Label.Style&gt;
      &lt;/Label&gt;
  </code></pre>