如何在 WPF 中创建自己的窗口框架?

发布于 2024-12-29 10:28:05 字数 135 浏览 2 评论 0原文

我想拆掉标准窗框,并放置一个带有自己按钮的窗框。我该怎么做?

像这样的东西(只是一个示例,你明白了)。

在此处输入图像描述

I want to remove the standard window frame and put my own one with my own buttons. How can I do this?

Something like this (just a sample, you get the idea).

enter image description here

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

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

发布评论

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

评论(2

朦胧时间 2025-01-05 10:28:05

查看 WPF Shell 集成库

自定义镀铬功能允许应用程序控制外部
窗口框架,以便可以在标题上绘制 WPF 内容
酒吧。

Check out the WPF Shell Integration Library:

The custom chrome feature allows applications control over the outer
frame of the window so that WPF content can be drawn over the title
bar.

泪之魂 2025-01-05 10:28:05

您可能会尝试通过更改 Windowstyle 属性来隐藏原始窗口框架,然后在需要的地方绘制按钮和所需的内容。

MSDN 对此

you might try to hide the original window frame by changing the Windowstyle property and then drawing the buttons and stuff you need wherever you need them.

MSDN on this

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