3

I am developing UWP app (open to choose any other kind of app) which will run in system tray. I want to customize context menu from conventional to windows 10 style.

UWP currently does not provide NotifyIcon (System tray icon). But this project helped me to create a bridge which helps to add winforms NotifyIcon control to UWP app. But I want this NotifyIcon context menu to look elegant.

first pic on shows default context menu .net provides and the second pic is the kind of context menu which I need.

conventional

desired

can anyone help me out here?

JD-V
  • 3,336
  • 1
  • 17
  • 20
  • You can create a custom renderer like this: [Windows 10 Styled ContextMenuStrip](https://stackoverflow.com/q/32786250/3110834). Just change the colors of the color table to what you need. – Reza Aghaei Nov 20 '17 at 10:13
  • 1
    A UWP app cannot directly support a NotifyIcon, it gets suspended by the OS when it loses the foreground. So cannot respond to menu selections. The GitHub project in fact uses a secondary process, one that is not a UWP native app at all. And can thus support NotifyIcon. But is limited to using non-UWP controls throughout, you cannot use the MenuFlyout class. You can only make it look like one. Making it look different from the context menus provided by all the other tray icons, meh, maybe not such a good idea. – Hans Passant Nov 20 '17 at 10:26
  • 1
    It seems like Microsoft hasn't even figured this out yet. I right click on my the network tray icon and I get a dark W10 theme context menu, but I right click on the battery, the audio, Windows Defender, or OneDrive and it's a white old style context menu. And I'm running 1709. So it might not be worth worrying about yet. – Sean O'Neil Nov 20 '17 at 11:31
  • any update on this question? I actually want to go to the next level and create something like Microsoft People app with a modern UI popup that reside in the taskbar – Ali123 Dec 11 '19 at 11:29

0 Answers0