I'd like to set a shortcut for
"Navigate to Event Handler" operation available on events in XAML editor. Currently, I right-click the event name (in XAML) and select "Navigate to Event Handler". However, I'd like to be able to set a shortcut.
The shortcut I want for this action is F12, but there is already a shortcut
"Edit.GoToDefinition" set to
I can't set it to F12 without clearing the
F12 (Global) setting for
There is a combo box
"Use new shortcut in:" where I can set a context in which I want to use the shortcut. However, I can't find the XAML editor on the list. I've tried and set it to
"HTML Editor Source View", but it didn't work. Then I've tried to set it to
"Text Editor", and then it worked, but then
Edit.GoToDefinition got overriden in source code. And since the
"Navigate to Event Handler" has no meaning in code-behind, nothing happens on F12.
Is there an option in
"Use new shortcut in:" I can use to limit F12 :
EditorContextMenus.XAMLEditor.NavigateToEventHandler to work only in XAML editor?