Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在xaml中的Interaction.Triggers中添加条件?_Xaml_C# 4.0_Silverlight 4.0 - Fatal编程技术网

如何在xaml中的Interaction.Triggers中添加条件?

如何在xaml中的Interaction.Triggers中添加条件?,xaml,c#-4.0,silverlight-4.0,Xaml,C# 4.0,Silverlight 4.0,任何人都可以在xaml中执行Interaction.Triggers之前帮助添加条件。 我在触发事件中有一个按钮,我将执行一个训练,在开始转换之前,我要检查文本框是否为空,然后我要执行 <button> <i:Interaction.Triggers> <i:E

任何人都可以在xaml中执行Interaction.Triggers之前帮助添加条件。 我在触发事件中有一个按钮,我将执行一个训练,在开始转换之前,我要检查文本框是否为空,然后我要执行

<button>
     <i:Interaction.Triggers>                                               
                                                    <i:EventTrigger EventName="Click">
                                                        <TransitionBehaviours:ShowHideWithFlip  ShowElementName="AlternateFaceGrid" HideElementName="FrontFaceGrid" Direction="BottomToTopCrazy" />
                                                    </i:EventTrigger>
                                                </i:Interaction.Triggers>
</button>

你有没有弄明白这一点?我认为这种行为可能会引导你找到正确的答案。我觉得混合有一个简单的解决方案。希望你最终能找到答案。可能有点晚了,但是如果有人路过,看看这个答案:你有没有找到这个答案?我认为这种行为可能会引导你找到正确的答案。我觉得混合有一个简单的解决方案。希望你最终能找到答案。可能有点晚了,但如果有人路过,看看这个答案: