title: Set button content on button click trigger in xaml
body: <p>I would like to set button content using trigger in XAML without writing code behind: </p>
  
  <p>Every time button is clicked, content should be changed:
  Something like button clicked first time, button content = "Hi", Second time clicked, button content = "Bye", Third time clicked, button content = "Hi" again. </p>
  
  <pre><code>    &lt;Button x:Name="btn" Content="Hi"&gt;
          &lt;Button.Triggers&gt;
              &lt;EventTrigger RoutedEvent="Button.Click"&gt;
                  &lt;BeginStoryboard&gt;
                      &lt;Storyboard&gt;
                          &lt;ObjectAnimationUsingKeyFrames Storyboard.Target="{x:Reference btn}"
                                             Storyboard.TargetProperty="Content"&gt;
                              &lt;DiscreteObjectKeyFrame KeyTime="0:0:0"
                                          Value="Bye"/&gt;
                          &lt;/ObjectAnimationUsingKeyFrames&gt;
                      &lt;/Storyboard&gt;
                  &lt;/BeginStoryboard&gt;
                  &lt;StopStoryboard&gt;
                  &lt;/StopStoryboard&gt;
              &lt;/EventTrigger&gt;
          &lt;/Button.Triggers&gt;
      &lt;/Button&gt;
  </code></pre>
  
  <p>So it works for setting button content once to Bye, but how to set it back to Hi on the next click ??</p>
  
  <p>I am also not sure if this is the most efficient way of setting the trigger, if you have better solution, feel free. </p>