本文介绍了关于wex.lib中的WindowsBase StackOverFlowException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
我正在使用WPF可扩展性技巧或WEX-包括EventTrigger,ReactiveTrigger,InvokeMethodAction,InvokeCommandAction项目,您可以在代码项目中上载.出色的!!但是出事了我有一个复选框和一个组框,当IsChecked属性的myCheckbox为true时,我需要将GroupBox隐藏起来.但是当我运行应用程序(XBAP)时,抛出了异常

WindowsBase.dll上的StackOverflowException.我跟踪了源代码,并注意到这种情况仅在wex:PropertyTrigger情况下发生,并且在InvokeConditional(object parameter)中的EventBaseTrigger中引发了以下错误:

var result =参数为EventResult;
this.Sender = result.Sender;
this.Argument = result.Args; < ---抛出了异常

这是XAML的摘录代码

Hi!,
I''m using the WPF Extensibility Hacks or WEX - Includes EventTrigger, ReactiveTrigger, InvokeMethodAction, InvokeCommandAction project, you upload in code project. Excellent!! but something happen. I have a checkbox and a groupbox and I need when IsChecked property''s myCheckbox is true, GroupBox hide. But when I run app (XBAP), exception is thrown

StackOverflowException on WindowsBase.dll. I made a trace into source code and I note this happen just for wex:PropertyTrigger situation, and errors is thrown in EventBaseTrigger in InvokeConditional(object parameter) in lines:

var result = parameter as EventResult;
this.Sender = result.Sender;
this.Argument = result.Args; <--- Here exception is thrown

this is snipet code from XAML

<i:Interaction.Triggers>
    <wex:PropertyTrigger SourceType="Element" ElementName="chkMyCheckBox" Property="IsChecked">
        <wex:PropertyAction Action="Set" TargetType="Element" TargetName="grpMyGroupBox" Property="Visibility" Value="Hidden">
            <wex:PropertyAction.Conditions>
                <wex:InvokingConditions>
                    <wex:InvokingCondition Value="True"/>
                </wex:InvokingConditions>
            </wex:PropertyAction.Conditions>
        </wex:PropertyAction>
    </wex:PropertyTrigger>




感谢您的帮助!


感谢




I appreciate any help!!


thanks

推荐答案



这篇关于关于wex.lib中的WindowsBase StackOverFlowException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 08:24