TrayIcon 菜单中的 Aero 边框和其他控件
我正在为 Windows 编写一个系统托盘应用程序(从此线程收集了很多信息)。我有 ContextMenu 工作 - 您可以右键单击并以这种方式执行功能。
然而,我希望通过左键单击弹出一个现代、丰富的界面,就像大多数内置的 Windows 7(可能还有 Vista)托盘图标一样。我指的是 Aero 衬里,以及添加看似任意控件(例如音量滑块、网络选择器)的明显能力。
我不太确定从哪里开始。是否需要创建一个“正常”窗口并对其进行严格限制?如果是这样,怎么办? (如果归结为 Windows 窗体与 WPF,后者更可取)。
I'm writing a system tray app for Windows (with much info gleaned from this thread). I have the ContextMenu working - you can right click and execute functions that way.
I want to have a modern, rich interface pop up on a left click, however, much like most of the built in Windows 7 (and possibly Vista) tray icons have. By this I refer to the Aero lining, and apparent ability to add seemingly arbitrary controls (e.g. volume slider, network chooser).
I'm not really sure where to start. Is it a matter of creating a "normal" window and restricting it heavily? If so, how? (If it comes down to Windows Forms vs. WPF, the latter is preferable).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不管怎样,当您收到鼠标点击通知图标时,您可以显示任何您喜欢的内容。通常它是一个弹出菜单,但您也可以显示一个窗口。
For what it's worth, you can display anything you like when you receive the mouse click on your notification icon. Usually it's a pop-up menu, but you could show a window instead.