Page 1 of 1

Add condition to a trigger

Posted: 04 Jun 2025, 09:25
by RisingSunStudios
Hey all,

Is it possible to add a condition to a trigger in Noesis? I checked the documentation and having some issues with the autocomplete in my project (have raised it with Jetbrains) so it's hard to discover if this is possible in Noesis.

What I'd like to do is have a NoesisApp.TriggerBase only execute it's actions if a Condition is true.
                            <triggers:InputActionTrigger ActionName="AbilitySelect_Confirm" TriggerType="{x:Static rewired:InputActionEventType.ButtonJustPressed}">
                                <b:Condition LeftOperand="{Binding IsSelected}" Operator="Equals" RightOperand="True" />

				<!-- do these if the condition is met -->
                                <triggers:WriteToLogAction Value="Button Just Pressed" />
                                <b:ControlStoryboardAction Storyboard="{StaticResource BeginAnimateProgressBar}" />
                            </triggers:InputActionTrigger>

Re: Add condition to a trigger

Posted: 04 Jun 2025, 09:28
by RisingSunStudios
Damn.. as soon as I post I see the related posts.. and a link to ConditionBehaviors which looks exactly like what I need!

Re: Add condition to a trigger

Posted: 04 Jun 2025, 14:15
by sfernandez
Yes, here it is the documentation about ConditionBehavior: https://www.noesisengine.com/docs/App.I ... avior.html