有没人告诉我下LayeredSkin中的LayeredPanel的滚动条为啥不起作用,设置了 layeredPanel1.VerticalScroll.Value = 50;LayeredPanel中的控件没有对应的移动 int y = 0;
int x = 0;
int btnH = 50;
int btnW = 100;
for (int i = 0; i < 100; i++)
{
for (int j = 0; j < 100; j++)
{
DuiButton btn = new DuiButton();
btn.Height = btnH;
btn.Width = btnW;
btn.Text = i.ToString() + "_" + j.ToString();
btn.MouseClick += Btn_MouseClick;
btn.Location = new Point(x, y);
x += btnW;
layerPanel.DUIControls.Add(btn);
}
y += btnH;
x = 0;
}
layerPanel.DUIControls.Add(bar);
我想横向和垂直都有滚动条 能够滚动
|