0

I have a Visibility property on my TextBlock that I am changing via a visualstatemenager animation. I am using the objectanimationusingkeyframes object. However I also would like to bind a property in my view model to the Visibility property of my control, so that I can see when it changes and react to that. Is there a code behind way to do this?

<ObjectAnimationUsingKeyFrames Storyboard.TargetName="commentaryStatusInfoBlock"
                               Storyboard.TargetProperty="(UIElement.Visibility)">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
</ObjectAnimationUsingKeyFrames>
H.B.
  • 166,899
  • 29
  • 327
  • 400

1 Answers1

0

There a IsVisibleChanged event (which does not directly correspond to Visibility), or you could use generic method of listening to DP changes.

Community
  • 1
  • 1
H.B.
  • 166,899
  • 29
  • 327
  • 400