How to bring up a hidden control when mouse is near the edge of the screen
In my WPF project, the main window is a transparent window (AllowsTransparency="True" and Backgr开发者_运维技巧ound="Transparent"). The WindowState is Maximized. A listbox is at the bottom of the window. The listbox will go away, after a few seconds. The requirement is that the listbox will stay hidden, until the mouse is near the bottom of the screen.
How can I bring the listbox back in this situation? Using MouseMove event on the main window is no help at all, since it is a transparent window. Is there any other event that I can use to detect the mouse is near the bottom of the screen? Thanks
You could try and use a mouse-hook if the MouseMove
event is not an option.
精彩评论