I have this code that is works correctly. My target is:
i have a button named "CH1". When i press that, it gets disabled using the style below. Now my question is, can i change the button content to time remaining until it gets back enabled? e.g. when i press it disable for 10 mins and content="00:10:00"and running until 00:00:00. when time passes and it's time to get enabled return to original content "CH1".
<Style TargetType="Button" x:Key="MUaa3">
<Style.Triggers>
<EventTrigger RoutedEvent="Button.Click" >
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="IsEnabled">
<DiscreteBooleanKeyFrame KeyTime="00:00:00" Value="False" />
<DiscreteBooleanKeyFrame KeyTime="00:10:00" Value="True" />
</BooleanAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Style.Triggers>