Tag: splitter

C#中的SplitContainer拆分器?

我正在使用拆分容器。 出于某种原因,分离器看起来像这样: 很难看到。 在两条黑线的中间是微弱的2条线。 如何解决此问题并在两行之间添加填充? 我使用Fixed Single作为我的边框样式。

C#WinForms中的自定义绘制分割器控件

我正在尝试绘制拖动分割器控件时出现的分割线: 从该图像中可以看出,默认分割器是棋盘格。 ……这不起作用: public partial class MockForm : Form { public MockForm() { InitializeComponent(); this.splitter1.Paint += splitter1_Paint; } private void splitter1_Paint(object sender, PaintEventArgs e) { e.Graphics.Clear(Color.Red); } } 这只是绘制控件的背景,而不是拖动时的分割器。 有任何想法吗?