开发者

How to bring up a hidden control when mouse is near the edge of the screen

开发者 https://www.devze.com 2023-03-13 18:30 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消