Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Title-bar's context menu [duplicate]

Tags:

c++

c#

windows

wpf

Possible Duplicate:
How can I customize the system menu of a Windows Form?

How could I insert new items to the title-bar's context menu as in Google's Chrome:

Google Chrome

I would prefer a C# WPF solution, but I have no problem to do this in C++ (Interops are all set already).

Thank you.

like image 512
MasterMastic Avatar asked Sep 16 '12 19:09

MasterMastic


1 Answers

Some other alternatives here:

  • http://www.codeproject.com/Articles/70568/An-MVVM-friendly-approach-to-adding-system-menu-en

  • http://www.codeproject.com/Tips/320885/Customize-Window-System-Menu-in-WPF

You might consider using the 2nd link where it actually creates a WPF menu instead of modifying the existing native system menu, if you wanted to skin the menu for your application.

I'd suggest you extended the code to scan the native System Menu so you could create WPF menu items that mirrored the expected System Menu items.

like image 98
CSmith Avatar answered Nov 02 '22 07:11

CSmith