WPF - 实现隐藏面板的最佳方法是什么?

发布于 2024-08-14 00:29:41 字数 123 浏览 2 评论 0原文

我有一个主应用程序窗口,它也实现了停靠面板。在现有停靠面板之一的底部,我想添加一个用户可以随意隐藏或查看的窗口。实现这一点的最佳方法是什么?我可以想象这背后的大部分代码,我只需要找出该窗口在需要时出现的适当控件,但仍然可以单独使用。

I have a main application window that also implements a dock panel. At the bottom of one of the existing dock panels, I want to add a window that the user can hide or view at will. What's the best way to implement this? I can envision most of the code behind this, I just need to figure out the appropriate control for this window to appear when needed but still be discretely available.

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

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

发布评论

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

评论(1

吾性傲以野 2024-08-21 00:29:41

Expander 控件可能就是您正在寻找的为了。这是一个 ContentControl,因此您可以使用任何您想要的面板作为内容。

An Expander control might be what you are looking for. This is a ContentControl so you can use whatever Panel you want as the content.

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