SCSF应用程序中是否可以在屏幕中央显示模式窗口

发布于 2024-07-05 04:54:44 字数 111 浏览 6 评论 0原文

在 SCSF 应用程序中,我想在屏幕中央显示一个视图作为模式窗口。 可以这样做吗?

WindowSmartPartInfo 没有任何用于设置屏幕位置的选项。

谢谢。

In SCSF application I would like to display a view as a modal window at the center of the screen. Is it possible to do that?

WindowSmartPartInfo doesn't have any option for setting screen postion.

Thanks.

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

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

发布评论

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

评论(1

不弃不离 2024-07-12 04:54:44

假设您谈论的是 Winforms,而不是 WPF,因为 CAB 的 WPF 层确实公开了此选项。 在 winforms 中,WindowSmartPartInfo 中没有选项可以执行此操作。 但是,您可以扩展它并扩展 WindowWorkspace 以使用新的 SmartPartInfo(重写 OnApplySmartPartInfo 方法)。

在执行此操作之前,您可能需要检查贡献和社区站点,看看是否有人已经这样做了。 我想我在某处见过一个。

Assuming you're talking about Winforms, not WPF since the WPF layer for CAB does expose this option. In winforms there is no option in the WindowSmartPartInfo to do this. However, you could extend it and extend WindowWorkspace to use your new SmartPartInfo (override the OnApplySmartPartInfo method).

Before you do this, you might want to check the contrib and community sites to see if anyone has already done it. I think I've seen one somewhere.

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