wpf Datatrigger - 防止触发OnLoad [英] wpf Datatrigger - prevent from triggering OnLoad

查看:101
本文介绍了wpf Datatrigger - 防止触发OnLoad的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个由真/假代码隐藏变量触发的动画。

如果变量为true - 其中一个动画开始,如果为false则另一个动画开始。



但是如何在应用程序加载时没有动画?

I have two animations triggered by true/false code-behind variable.
If the variable is true - one of the animations starts, if false the other starts.

But how to achieve no animation on load of the app?

推荐答案

我刚想出了一个想法,我会创建两个vars - 每个触发器绑定到其中一个。还有其他想法吗?
I've just came up with idea, that I will create two vars - each trigger bound to one of them. Any other ideas?


这篇关于wpf Datatrigger - 防止触发OnLoad的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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