I have a simple "Play/Pause" button that shows the "play" icon at the start of the application. Here's its code:
<Button x:Name="playPauseButton" Style="{DynamicResource MetroCircleButtonStyle}"
Content="{DynamicResource appbar_control_play}"
HorizontalAlignment="Left" Margin="77,70,0,0" VerticalAlignment="Top" Width="75" Height="75" Click="Button_Click"/>`
What I want to do is change the play icon to a pause icon when it's pressed. All I have to do is change the content to {DynamicResource appbar_control_pause}
. However, when I do the following:
playPauseButton.Content = "{DynamicResource appbar_control_stop}";
it shows just the string literally, inside the button. How could I change that property?