开发者

wpf how to tell if a storyboard is reversed?

开发者 https://www.devze.com 2023-03-03 04:24 出处:网络
I know i can hook into the State Changed event and others, however what i can not figure out is how to tell if my storyboard is running in reverse. It is set to auto reverse and repeat forever, and th

I know i can hook into the State Changed event and others, however what i can not figure out is how to tell if my storyboard is running in reverse. It is set to auto reverse and repeat forever, and that works well. Now I jut need 开发者_如何学JAVAa little help on how to tell which way it is playing. Many thanks.


There is not an easy way to determine that from the Storyboard alone - I would set an either/or value like Visibility on an extra element to determine that:

  • Visibility.Visible when forward
  • Visibility.Collapsed when backwards
0

精彩评论

暂无评论...
验证码 换一张
取 消