How to Apply Storyboard as Style

后端 未结 1 959
無奈伤痛
無奈伤痛 2021-01-14 09:42

I want to apply a Storyboard to my Rectangle Fill like this:



        
1条回答
  •  再見小時候
    2021-01-14 10:18

    Change this in your Storyboard

    Storyboard.TargetProperty="Color" 
    

    to

    Storyboard.TargetProperty="Fill.Color"
    

    and remove

    Storyboard.TargetName="MySolidColorBrush"
    

    0 讨论(0)
提交回复
热议问题