KeyBindings in Noesis
Posted: 07 Apr 2015, 12:50
I'm trying to define a KeyBinding for a UserControl, but have a problem due to a difference in the way InputBinding is implemented in Noesis, compared to WPF.
In WPF, I would write:
This would result in the Tab key being bound to NextCommand whenever the UserControl is in focus.
This approach does not work in Noesis because InputBinding's properties are not dependency properties, like they are in WPF.
What would be the best way to acheive this behaviour in Noesis?
Edit: Fixed inaccurate description.
In WPF, I would write:
Code: Select all
<UserControl.InputBindings>
<KeyBinding Gesture="Tab" Command="{Binding NextCommand}"/>
</UserControl.InputBindings>This approach does not work in Noesis because InputBinding's properties are not dependency properties, like they are in WPF.
What would be the best way to acheive this behaviour in Noesis?
Edit: Fixed inaccurate description.