Activate Storyboard on Visibility Changed

前端 未结 2 1240
渐次进展
渐次进展 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条回答
  •  Happy的楠姐
    2021-02-20 15:06

    In WPF there is an event UIElement.IsVisibleChanged but is a CLR event, not a routed event, therefore in EventTrigger can not be used.

    In this case use IsVisible property in DataTrigger like this:

    
        
    
    
    
                
    
    

提交回复
热议问题