View Issue Details

IDProjectCategoryView StatusLast Update
0003823NoesisGUIUnity3Dpublic2024-11-25 16:13
Reportersfernandez Assigned Tosfernandez  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version3.2.5 
Target Version3.2.7 
Summary0003823: Stack overflow using a ConditionBehavior within StyleTriggerCollection
DescriptionCurrent 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>
TagsNo tags attached.
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-11-25 16:13 sfernandez New Issue
2024-11-25 16:13 sfernandez Assigned To => sfernandez
2024-11-25 16:13 sfernandez Status new => assigned
2024-11-25 16:13 sfernandez Target Version => 3.2.7