Add condition to a trigger
Posted: 04 Jun 2025, 09:25
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.
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.
Code: Select all
<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>