开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜