Set the content of the textblock within toggle button
<p>I am trying to set the content of the textblock (as shown below) when the IsChecked property has changed for the toggle button. I have tried multiple ways but unable to get it to work.</p>

<pre><code>&lt;ToggleButton VerticalAlignment="Center" Margin="4 0 0 0" Background="{DynamicResource AccentColorBrush}" Name="toggle"&gt;
    &lt;StackPanel Orientation="Horizontal"&gt;
        &lt;Rectangle Width="20" Height="20" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}"&gt;
            &lt;Rectangle.OpacityMask&gt;
                &lt;VisualBrush Stretch="Fill" Visual="{StaticResource appbar_starwars_jedi}" /&gt;
            &lt;/Rectangle.OpacityMask&gt;
        &lt;/Rectangle&gt;
        &lt;TextBlock x:Name="SimulationToggleButtonText" Margin="4 0 0 0" VerticalAlignment="Center" Text="Start Simulation"&gt;
        &lt;/TextBlock&gt;
    &lt;/StackPanel&gt;
    &lt;ToggleButton.Style&gt;
        &lt;Style TargetType="{x:Type ToggleButton}"&gt;
            &lt;Setter Property="Foreground" Value="Green"/&gt;
            &lt;Style.Triggers&gt;
                &lt;Trigger Property="IsChecked" Value="True"&gt;
                    &lt;Setter Property="Content"  Value="Stop Simulation"/&gt;
                    &lt;Setter Property="Foreground" Value="Red"/&gt;
                &lt;/Trigger&gt;
            &lt;/Style.Triggers&gt;
        &lt;/Style&gt;
    &lt;/ToggleButton.Style&gt;
&lt;/ToggleButton&gt;
</code></pre>