Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How can you have keyboard shortcuts on the NotifyIconWPF ContextMenu (e.g. press O after right-click, instead of clicking exit)?

$
0
0

Hi,

I have created NotifyIcon (SystemTrayIcon) for wpf using Windows Form NotifyIcon component.

I have made many failed attempts to use keyboard shortcuts on the context menu of NotifyIcon WPF.

<MenuItem x:Uid="MenuItem_2" Header="_Open IDC" Command="{Binding ShowWindowCommand}"></MenuItem>

This does not work. The O shows up underlined, but pressing the key does nothing.

Thanks in advance.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>