WPF TreeViewItem扩展动画 [英] WPF TreeViewItem Expanding Animation

查看:148
本文介绍了WPF TreeViewItem扩展动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了问题 Wpf树形视图中的代码-我想为节点的扩展设置动画,但是动画没有在第一个扩展中起作用,它确实对随后的扩展事件起作用.

I used the code from question Wpf treeview - i want to animate the expansion of the nodes, but the animation doesn't work on the first expand, it does work for the consequent expand events.

有什么想法吗?

推荐答案

将触发值更改为false 并将EnterAction的情节提要交换到ExitAction的情节提要

Change the Trigger Value to false and swap the EnterAction's storyboard to ExitAction's

这篇关于WPF TreeViewItem扩展动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆