How to show the menu at the top of the window title bar

I have been trying for some time to show a menu similar to this in my WPF title bar (orange in the upper left corner):

https://wiki.mozilla.org/Firefox/4.0_Windows_Theme%20_Mockups#Large_Button_Mode

I expanded the aerosol to the client area using the DwmExtendFrameIntoClientArea method. The application icon in the upper left corner is not displayed, and I can show the menu, but do not click on it, it does not open, and if I put for example a text field in the title bar, I cannot edit its contents. I think my controls are not on top of the header. How can I draw them on top of the title bar so that the menu is accessible?

+7
c # wpf
source share
1 answer

The WPF Shell Integration Library can help you with this:

http://code.msdn.microsoft.com/WPFShell (using http://blogs.msdn.com/b/llobo/archive/2010/05/10/wpf-shell-integration-library.aspx )

β€œThe custom chrome function allows applications to control the external frame of the window so that WPF content can be drawn above the title bar. This allows applications to integrate the look of Office 2007/2010 with Aero-glass or completely replace the frame with its own content without having to control all system behaviors,” who get lost when using WindowStyle.None "

+2
source share

All Articles