Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

XML
<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
Posted
Comments
Arindam Tewary 22-Oct-10 16:32pm    
Stack Overflow exception happens only if there is a recursive method call that does not reach the base case(termination condition). Please review your code to find a never ending recursive call and remove that or avoid never ending recursive call.

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
 
Share this answer
 
XBAP applications are some what limited security applications.

This problem could be because of Permissions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900