我想在图像6的滚动条上的六个图表上生成我已经生成的滚动条,但是在滚动条上显示一个按钮,如果我按下按钮,则滚动条隐藏,但我不希望该按钮可以帮助任何人解决此问题请。
意外按钮1
private void makeChartsScrollable(Chart chart) {
chart.ChartAreas[3].AxisX.ScrollBar.Enabled = true;
// chart.ChartAreas[3].CursorX.IsUserEnabled = false;
// chart.ChartAreas[3].CursorX.IsUserSelectionEnabled = false;
// chart.ChartAreas[2].AxisX.ScaleView.Zoomable = false;
// chart.ChartAreas[2].AxisX.IsLabelAutoFit = true;
// chart.ChartAreas[2].AxisX.ScaleView.Position = 0;
// chart.ChartAreas[2].AxisX.ScaleView.Size = 23;
//chart.ChartAreas[3].AxisX.
chart.ChartAreas[3].AxisX.ScaleView.Zoom(0, 8);
chart.ChartAreas[3].AxisX.ScaleView.MinSize = 0;
chart.ChartAreas[3].AxisX.ScrollBar.IsPositionedInside = true;
chart.ChartAreas[3].AxisX.ScrollBar.Size = 23;
chart.ChartAreas[3].AxisX.ScrollBar.ButtonColor = Color.Silver;
chart.ChartAreas[3].AxisX.ScrollBar.LineColor = Color.Black;
/*
chart.ChartAreas[3].AxisX2.ScaleView.Zoomable = false;
chart.ChartAreas[3].AxisX2.ScrollBar.Enabled = true;
chart.ChartAreas[3].AxisX2.ScaleView.Position = 0;
chart.ChartAreas[3].AxisX2.IsLabelAutoFit = false;
chart.ChartAreas[3].AxisX2.ScaleView.Size = 23;
chart.ChartAreas[3].AxisX2.ScrollBar.ButtonColor = Color.Silver;
chart.ChartAreas[3].AxisX2.ScrollBar.LineColor = Color.Black;*/
}