title: Button Enablity WPF
body: <p>I have a <code>UserControl</code> in which I have a <code>DataDrid</code> and in that <code>DataGrid</code> I have two <code>ComboBoxes</code>. Now what I want to do is when I select any item from both the <code>ComboBoxes</code> the Button which is outside the <code>DataGrid</code> should get enabled.</p>
  
  <p>My <code>DataGrid</code> is bind to an <code>ItemSource</code> so does the Comboboxes.</p>
  
  <p>I tries to use <code>MuliDatatriggers</code> but they failed as button is outside the <code>DataGrid</code> so those <code>ComboBoxes</code> will not be available to it.</p>
  
  <pre><code>&lt;DataGrid&gt;
     &lt;DataGrid.Columns&gt;
        &lt;DataGridTemplateColumn Width="Auto"&gt;
           &lt;DataGridTemplateColumn.CellTemplate&gt;
              &lt;DataTemplate&gt;
                 &lt;ComboBox Name="Combo1" ItemsSource="{Binding Lst1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Code1" SelectedValue="{Binding CodeID1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"&gt;      
                 &lt;ComboBox Name="Combo2" ItemsSource="{Binding Lst2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Code2" SelectedValue="{Binding CodeID2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"&gt;
              &lt;/DataTemplate&gt;
           &lt;/DataGridTemplateColumn.CellTemplate&gt;
        &lt;/DataGridTemplateColumn&gt;
     &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  
  &lt;Button Name="Add" IsEnabled="{Binding IsAddEnabled,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/&gt;
  </code></pre>