title: Replace control template in toggle button on change state
body: <p>I would like to create a flexible toggle button control. On toggle button "IsChecked" property "true", I would add two another buttons.</p>
  
  <p>I have obtained this result by setting control template. But now how can I set default toggle button template (in this case toggle template is parrent) after button clicked? Toggle button should has "IsChecked" property set to false after undo.</p>
  
  <p>XAML code:</p>
  
  <pre><code>&lt;ToggleButton Content="Delete"&gt;
  &lt;ToggleButton.Style&gt;
      &lt;Style&gt;
          &lt;Setter Property="ToggleButton.Content" Value="Stops" /&gt;
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="ToggleButton.IsChecked" Value="True"&gt;
                  &lt;Setter Property="ToggleButton.Template"&gt;
                      &lt;Setter.Value&gt;
                          &lt;ControlTemplate&gt;
                              &lt;Grid HorizontalAlignment="Center"&gt;
                                  &lt;Grid.ColumnDefinitions&gt;
                                      &lt;ColumnDefinition Width="24" /&gt;
                                      &lt;ColumnDefinition Width="24" /&gt;
                                  &lt;/Grid.ColumnDefinitions&gt;
                                  &lt;Button Command="{Binding ConditionalAcceptCommand}" Grid.Column="0"&gt;
                                      &lt;Image Source="pack://application:,,,/Images/check_mark24.png"/&gt;
                                  &lt;/Button&gt;
                                  &lt;Button Grid.Column="1"&gt;
                                      &lt;Image Source="pack://application:,,,/Images/delete24.png"/&gt;
                                  &lt;/Button&gt;
                              &lt;/Grid&gt;
                          &lt;/ControlTemplate&gt;
                      &lt;/Setter.Value&gt;
                  &lt;/Setter&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  &lt;/ToggleButton.Style&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks</p>