TitleBar Events

I would like to know if there is a way to handle mouse events in a Windows TitleBar? I want to process some code when the mouse cursor is over the Application TitleBar.

Please give me some advice.

Thanks.

+4
source share
1 answer

In WPF, the header is part of the non-client area, so you cannot handle events on it. You might be able to do this with Win32 interceptors. You can also create a custom chrome window and add a custom title bar to handle events on it yourself.

+1
source

All Articles