Caliburn.Micro:使用 WPF 通过 IWindowManager 创建无边框窗口
使用 IWindowManager 。 codeplex.com" rel="nofollow">Caliburn.Micro,是否可以使用 ShowWindow
方法创建无边框窗口?
在这种情况下,窗口的内容是从用户控件生成的。 Caliburn.Micro 将创建一个窗口来托管 UserControl。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑:今天的状态:
在当前的 Caliburn.Micro v1.2(2011 年 7 月 20 日)版本中,无法在创建的窗口上设置属性。您可以继承
WindowManager
并重写CreateWindow
方法:新版本发布时:
是的,可以,使用
settings< /code> 参数:
Caliburn.Micro 将使用此字典作为
[属性名称; property value]
包并通过反射将它们设置在创建的窗口上。我从未创建过无边框窗口,但基于此 artice 像这样的东西应该有效:
EDIT: The status today:
With the current Caliburn.Micro v1.2 (July 20, 2011) release it's not possible to set properties on the created window. You can inherit from the
WindowManager
and override theCreateWindow
method:When the new version released:
Yes it's possible, with the
settings
parameter:Caliburn.Micro will use this dictionary as
[property name; property value]
bag and set them on the created window with reflection.I've never created a borderless window but based on this artice something like this should work: