实现像 EA Origin 中一样的 WPF 覆盖
How can I achieve an overlay, similar to the one you can see in the picture linked below, using C# and WPF?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果要将窗口设置为透明,只需执行以下操作之一:Window.Background =“Transparent”或Opacity =“0”。至于如何弹出,要么自己处理鼠标输入,要么将其设置为弹出窗口
If you want to set a window to transparent just do either of the following: Window.Background="Transparent", or Opacity="0". As far as how it pops up, either handle mouse enter yourself or set it up as a popup
尝试查看 Popup 类。您的另一个选择是创建一个自定义用户控件。
阅读您的评论后,您可能想看看这个 SO 答案,它讨论了使用 CombinedGeometry 用于创建您正在寻找的内容。
Try looking at the Popup Class. Your other option would be to create a custom UserControl.
After reading your comment you may want to look at this SO answer it discusses using CombinedGeometry's to create something like you are looking for.