Activate Storyboard on Visibility Changed

前端 未结 2 1239
渐次进展
渐次进展 2021-02-20 15:02

Currently I have an Image that I pulse when it is loaded. I want to rather activate the Storyboard when I change the Visibility of the Image. But I see that I

2条回答
  •  萌比男神i
    2021-02-20 15:18

    If you want to animate on a DependencyProperty or bound value you will need to create a Style for your image and put the animation in the style.

    The following Style will perform your animation when the Visibility of your image is set to Visible:

        
    

提交回复
热议问题