I have button content with the name Hold the button Once When I pressed the button The content of the button should change to resume, again, if the resume button is pressed, then the hold should be visible, please help me ...
XAML Code:
<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>
source share