设置 SplitterContainer 面板的最小允许大小
问候, 在 C# WinForms 中: 我有一个 splitterContainer。让我们坐在 SplitterContainer.Panel1 中的 Docked to Fill TableLayout 现在,当我移动拆分器栏时,它可以覆盖每个面板的区域。因此,当我们移动分隔栏时,它甚至可以隐藏其面板之一。但我不想要它!我想对此有个限制。我希望 SplitteRContainer 的面板始终可用的最小尺寸是其每个面板中已有的内容所需的尺寸。我不希望能够通过移动分隔栏来隐藏一个面板及其内容,因此当它到达这一点时,我希望它停止移动和调整面板大小。 您能帮我解决如何实现这一点吗?
Greeting,
in C# WinForms:
I have a splitterContainer. and lets sat there is Docked to Fill TableLayout in SplitterContainer.Panel1
now when I move the Splitter bar, it can cover the area of each of its panels. so it can even hide one of its panels when we move the splitter bar. But I do not want it! I want to have a limit for that. the minimum size I want to always be available for the panels of the SplitteRContainer is the size that is necessary for the contents that are already inside each panel of it. I do not want to be able to hide one panel and its contents by moving the splitter bar, so when it gets to that point I want it to stop moving and resizing the panels.
Can you please help me on how to make this happen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
设置
Panel1MinSize
属性。Set the
Panel1MinSize
property.