title: Change binded object property on button click in WPF
body: <p>I have binded an object to a WPF control. How can I toggle the object property "IsEditMode" on click of the edit button <strong>using only xaml and no code behind</strong>? Here is sample code of xaml -</p>
  
  <pre><code>&lt;Label Style="{StaticResource TitleLabel}" 
         Content="{Binding Path=GroupTitle}" 
         Visibility="{Binding Path=IsEditMode, Converter={StaticResource boolToVis}}"
         HorizontalAlignment="Left" /&gt;
  
  &lt;Button Content="Edit" HorizontalAlignment="Right" VerticalAlignment="Center"&gt;
      &lt;Button.Triggers&gt;
          &lt;EventTrigger RoutedEvent="Button.Click"&gt;
              &lt;!--Toggle the bindedobject.IsEditMode property of click of button--&gt;
          &lt;/EventTrigger&gt;
      &lt;/Button.Triggers&gt;
  &lt;/Button&gt;
  </code></pre>