Is it possible to register an application command in Catel which would fire only when specific control has a focus?
For example, in the Catel.Examples.WPF.Commanding
example,
(https://github.com/Catel/Catel.Examples/tree/master/src/NET/Catel.Examples.WPF.Commanding)
if I replace TextBlock
with TextBox
and add RibbonButton
s with ApplicationCOmmands.Cut
and ApplicationCommands.Paste
, these Application commands work only on focused TextBox
.
Is it possible to make Refresh command execute only on the DocumentView
which has a focus?
Alternatively, is there an example or guidance on using RoutedUICommands
with Catel and its ICommandManager
?
Thanks, Tom