我有名为 Hold 按钮的按钮内容。当我单击按钮时,按钮内容应更改为 Resume,再次,如果按下恢复按钮意味着 Hold 应该可见。
XAML 代码:
<Button Style="{StaticResource CommonButtonStyle}" Template="{DynamicResource GlassButton}" ToolTip="F9" Click="Hold_Click" PreviewKeyDown="Hold_PreviewKeyDown" Name="OK" Margin="1,49,25,0" Grid.Column="2" Grid.Row="13" Grid.RowSpan="2">
<StackPanel Style="{StaticResource ButtonStackPanel}">
<Image Style="{StaticResource CancelImages}" />
<TextBlock Text="{Loc lblHold}" Style="{StaticResource ButtonTextBlock}" />
</StackPanel>
</Button>