Description | Current BehaviorCollection code in C# is trying to clone the collection itself and set it on the property changed callback, entering into a call loop that leads to a stack overflow:
<Style TargetType="ListBoxItem" BasedOn="{StaticResource Editor.Style.ListBoxItem}">
<Setter Property="noesis:StyleInteraction.Triggers">
<Setter.Value>
<noesis:StyleTriggerCollection>
<b:EventTrigger EventName="PreviewMouseLeftButtonUp">
<b:Interaction.Behaviors>
<b:ConditionBehavior>
<b:ConditionalExpression>
<b:ComparisonCondition LeftOperand="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=ListBoxItem}}" RightOperand="True"/>
</b:ConditionalExpression>
</b:ConditionBehavior>
</b:Interaction.Behaviors>
<b:InvokeCommandAction Command="{Binding CreateResourceCommand}" CommandParameter="{Binding}"/>
</b:EventTrigger>
</noesis:StyleTriggerCollection>
</Setter.Value>
</Setter>
</Style> |
---|