关于wex.lib中的WindowsBase StackOverFlowException [英] About WindowsBase StackOverFlowException in wex.lib

查看:98
本文介绍了关于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

推荐答案

XBAP应用程序是某些限制安全性的应用程序.

此问题可能是由于权限所致.
XBAP applications are some what limited security applications.

This problem could be because of Permissions.


感谢您的回复.我的情况发生在Anoop Madhusudanan在2010年1月14日开发的项目中.在Anoop开发的InvokeConditional(object parameter)方法中,将WindowsBase.dll中的异常引发到EventBaseTrigger中.
http://www.codeproject.com/KB/WPF/wpfextensibility.aspx
Thanks for your response. My situation occurs into project developed by Anoop Madhusudanan in 14 Jan 2010. Exception is thrown into WindowsBase.dll into EventBaseTrigger in InvokeConditional(object parameter) method developed by Anoop.

http://www.codeproject.com/KB/WPF/wpfextensibility.aspx


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

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