Extend MenusPage with InputGesture Command Example
Closed this issue · 1 comments
Your XamlControlsGallery is very useful, thank you!
The only thing I can't figure out at the moment is, how to call commands using shortcuts from Menu entries.
The Avalonia Docs don't appear to give me the necessary information, so I tried to make it in a similar way I would do it with a none-Avalonia WPF Application.
But, using the same XAML Tags in Avalonia resulted in errors.
Is there a method or a trick how to figure out undocumente but valid XAML Tags, or is there a documentation I'm missing?
I issued a question at Stackoverflow, hoping that somebody could give me a hint.
The uploaded sample InputGestureAvalonia.zip shows how commands can be executed using the Mouse.
If you could tell me the missing part, to call commands using shortcuts, I'd be very glad.
Finally I found the solutions to my question (see https://stackoverflow.com/a/63113320).
This is the updated code with my implemetation, for the case it's useful for you: InputGestureAvalonia_v2.zip