[WP8.1]在使用页脚中的ColorAnimation挂起\resume之后的ListView奇怪行为 [英] [WP8.1]ListView strange behavior after suspend\resume with ColorAnimation in Footer
问题描述
大家好!
我在页脚中有一个包含自定义控件的ListView,其中包含ColorAnimation。
I have a ListView with custom control in Footer which contains ColorAnimation.
当我点击"分享"时;并且 回归到应用程序,ListView的几个项目都消失了。如果我没有启动Storyborad,一切正常。
When I click "share" and comeback to application a several times items of ListView are disappears. If I didn't launch Storyborad all works fine.
我将样本附加到 OneDrive 。
I attached sample to OneDrive.
推荐答案
我找到了解决方法:
I found workaround:
1。订阅
Window.Current.VisibilityChanged
2。手动管理故事板状态:如果可见 - 开始故事板,如果不可见 - 停止故事板。此外,我重置RepeatBehavior并重新设置。
2. Manage Storyboard state manually: if Visible - Begin storyboard, if Unvisible - stop storyboard. Also, I resets RepeatBehavior and set up anew.
有人可以解释ListView发生了什么吗?
Can someone explain what is happening with ListView?
这篇关于[WP8.1]在使用页脚中的ColorAnimation挂起\resume之后的ListView奇怪行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!