模板10多窗口 [英] Template 10 Multiple Windows

查看:127
本文介绍了模板10多窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在探索如何使用Template 10,并且希望有两个窗口.一个窗口用于审阅照片,而另一个窗口将在活动中向客人显示照片.

I'm currently exploring how to use Template 10, and would like to have two windows. One window is for moderation of photos, while the other will show the pictures to guests at an event.

到目前为止,我已经看到 Microsoft MultiViews示例,但似乎它没有使用模板10.

So far, I've seen Microsoft MultiViews sample but it seems that it does not use Template 10.

有人可以指出我/建议以使用模板10进行MultiViews的方向,还是我应该完全放弃模板10?

Could someone point me/advice in a direction to be able to MultiViews using Template 10, or should I just abandon Template 10 altogether?

推荐答案

您可以使用 ProjectionManager .在MSDN上也有有用的示例.如果您在Windows中设置了扩展的桌面,它基本上允许您打开辅助窗口",就像PowerPoint在演示者视图"中一样.

You could use ProjectionManager for this. There's also a useful sample on MSDN. It basically allows you to open a secondary "window" just like PowerPoint does in the "presenter's view" if you have an extended desktop set up in Windows.

然后,辅助窗口需要其自己的Frame并在单独的UI线程中运行.由于必须切换线程,因此这使得主窗口和辅助窗口之间的通信更加困难.最好的交流方式是使用Prism的PubSubEvents(或任何其他框架)之类的东西.

The secondary window then requires its own Frame and runs in a separate UI thread. This makes communication between your primary and secondary window a bit more difficult as you have to switch threads. The best way to communicate is to use something like an PubSubEvents of Prism (or any other framework).

我不认为Template10支持这一点,但是我不会因此而放弃它.我不知道有任何框架可以立即执行此操作,因此您必须自己将其组合在一起.

I don't think Template10 supports this, but I wouldn't abandon it because of that. I'm not aware of any framework that does this out of the box, so you have to piece it together yourself.

这篇关于模板10多窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆