Prism/CAL 和 WIn7 任务栏分组缩略图/预览
因此,我在一个具有四个独立模块的应用程序中使用 Prism v2 (CAL),作为选项卡控件加载。到目前为止效果很好。问题: 如何在 Win7 中为每个选项卡显示一个分组任务栏图标,以及如何显示 4 个任务栏预览窗口(一个显示每个选项卡控件的内容,如 IE8 中)?
如果有帮助的话,这就是我在 Bootstrapper 中加载选项卡模块的方式:
protected override IModuleCatalog GetModuleCatalog()
{
ModuleCatalog catalog = new ModuleCatalog();
catalog.AddModule(typeof(Module1));
catalog.AddModule(typeof(Module2));
catalog.AddModule(typeof(MFLModule3));
catalog.AddModule(typeof(Module4));
return catalog;
}
我了解 WindowsAPICodePack 的基础知识(我认为),但我不知道将其与 Prism 集成的最佳方法。任何见解都值得赞赏。
So I'm using Prism v2 (CAL) in an app with four separate modules, loaded as tab controls. Works great so far. Quesiton(s): How do I have one grouped taskbar icon in Win7 for each tab, and how do I get 4 taskbar preview windows to display (one showing each tab control's contents, like in IE8)?
If it helps, this is how I'm loading my tab modules in the Bootstrapper:
protected override IModuleCatalog GetModuleCatalog()
{
ModuleCatalog catalog = new ModuleCatalog();
catalog.AddModule(typeof(Module1));
catalog.AddModule(typeof(Module2));
catalog.AddModule(typeof(MFLModule3));
catalog.AddModule(typeof(Module4));
return catalog;
}
I understand the basics of the WindowsAPICodePack (I think), but I don't know the best way to integrate that with Prism. Any insight is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在这里混合了一些术语。模块包含视图,实际上是您要为其提供预览的视图。
您可以在这里做很多事情。其中很少有与 Prism 直接相关的。如果您使用区域将视图托管为选项卡:
那么您可以创建一个 RegionAdapter,自动将预览添加到该区域中任何视图的窗口。以下是有关 RegionAdapter 的一些信息:
http://msdn.microsoft.com/en -us/library/cc707884.aspx
至于预览本身,我发现这篇 Coding4Fun 文章特别有帮助:
http://blogs.msdn.com/coding4fun/archive/2009/08/25/9874533.aspx
You are mixing a few terms here. Modules contain views and it is actually those views you want to provide previews for.
There are a number of things you could do here. Very few of them are in any way related to Prism directly. If you are using a Region to host your views as tabs:
Then you could possibly create a RegionAdapter that automatically added previews to the windows for any Views in the region. Here's some information about RegionAdapters here:
http://msdn.microsoft.com/en-us/library/cc707884.aspx
As for the previews themselves, I found this Coding4Fun article particularly helpful:
http://blogs.msdn.com/coding4fun/archive/2009/08/25/9874533.aspx