同一视图显示两次

发布于 2024-10-08 13:22:53 字数 371 浏览 0 评论 0原文

我想在我的应用程序中实现一个“模块切换器”,它会弹出一个类似 alt-tab 的界面,显示打开的模块。

现在它的结构如下:

                ModuleShellView
                ModuleSwitcherView
         Module 1    Module 2    Module 3

ModuleSwitcherView 作为 ModuleShellView 中的对话框打开,并绑定到当前打开的模块。

这会导致后面屏幕中的活动模块转变为空。有没有办法让视图在后台保持打开状态,同时在另一个对话框中显示它? alt-tab 窗口只需要视图的“视图”,它不需要是交互式的。

I would like to implement a "Module Switcher" in my application, which brings up an alt-tab like interface showing the open modules.

Right now it is structured like this

                ModuleShellView
                ModuleSwitcherView
         Module 1    Module 2    Module 3

ModuleSwitcherView is opened as a dialog from ModuleShellView and binds to the currently open Modules.

This causes the active module in the screen behind to transition to nothing. Is there a way to keep the view open in the background, while displaying it in another dialog? The alt-tab window only needs a "view" of the view, it doesn't need to be interactive.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何其悲哀 2024-10-15 13:22:53

我已经找到了解决此问题的方法。我不是显示内容控件,而是抓取视图实例,将其写入 WriteableBitmap,然后使用它。

I have found a workaround for this. Rather than show the contentcontrol, I am grabbing the view instance, writing it to a WriteableBitmap and then using that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文