title: WPF XAML - How to bind a DataTrigger to a ComboBox value
body: <p>I currently have a ListView that takes in an item and displays a ComboBox and a Button.</p>
  
  <p>I would like to dynamically show or hide the button based on the value of the ComboBox being equal to "BlahBlahBlah".</p>
  
  <p>Currently the inside of my <code>&lt;GridView&gt;</code> looks like this:</p>
  
  <pre><code>&lt;GridViewColumn Header="Property" Width="160"&gt;
    &lt;GridViewColumn.CellTemplate&gt;
        &lt;DataTemplate&gt;
           &lt;ComboBox x:Name="PropertyComboBox"
                    ItemsSource="{Binding Path=ArisingPropertyList, Mode=TwoWay}"
                    SelectedValue="{Binding ArisingProperty.PropertyName,
                    UpdateSourceTrigger=PropertyChanged}"
                    SelectedValuePath="PropertyName" Width="140" &gt;
            &lt;/ComboBox&gt;
          &lt;/DataTemplate&gt;
     &lt;/GridViewColumn.CellTemplate&gt;
  &lt;/GridViewColumn&gt;                                         
  
  
  &lt;GridViewColumn Width="30" &gt;                                    
    &lt;GridViewColumn.CellTemplate&gt;                                        
       &lt;DataTemplate&gt;
           &lt;Button Content="..."&gt;
              &lt;Button.Style&gt;
                 &lt;Style TargetType="{x:Type Button}"&gt;
                   &lt;Style.Triggers&gt;
                     &lt;DataTrigger Binding="{Binding Path=SelectedValue.PropertyName, 
                      ElementName=PropertyComboBox}" Value="HideButton"&gt;
                          &lt;Setter Property="Visibility" Value="BlahBlahBlah" /&gt;
                     &lt;/DataTrigger&gt;
                   &lt;/Style.Triggers&gt;
                &lt;/Style&gt;
             &lt;/Button.Style&gt;
          &lt;/Button&gt;                                                
       &lt;/DataTemplate&gt;
     &lt;/GridViewColumn.CellTemplate&gt;
   &lt;/GridViewColumn&gt;
  </code></pre>
  
  <p>Can someone point out where I'm going wrong? All I'm getting is:</p>
  
  <pre><code>System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=PropertyComboBox'. BindingExpression:Path=SelectedValue.PropertyName; DataItem=null; target element is 'Button'; target property is 'NoTarget' (type 'Object')
  </code></pre>