chart缩放问题
在缩放很小的情况下,有没办法让他不进行缩放,以免误操作。您好,文档中有关于如何定义最小缩放你值,以及缩放的操作,http://www.gcpowertools.com.cn/docs/componentonestudio/c1wpfchart2d/webframe.html#Interaction.html
也可以添加鼠标滚轮事件Chart_MouseWheel
private void chart_MouseWheel(object sender, MouseWheelEventArgs e)
{
if (Keyboard.Modifiers == ModifierKeys.Control && e.Delta == -120)
{
chart.View.AxisX.Scale += .1;
chart.View.AxisY.Scale += .1;
}
else if (Keyboard.Modifiers == ModifierKeys.Control && e.Delta == 120)
{
chart.View.AxisX.Scale -= .1;
chart.View.AxisY.Scale -= .1;
}
}
具体地址
http://www.gcpowertools.com.cn/docs/componentonestudio/c1wpfchart2d/Zooming%20in%20C1Chart.html
页:
[1]