如何在 WPF 中创建自己的窗口框架?
我想拆掉标准窗框,并放置一个带有自己按钮的窗框。我该怎么做?
像这样的东西(只是一个示例,你明白了)。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 WPF Shell 集成库:
Check out the WPF Shell Integration Library:
您可能会尝试通过更改 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