I would want that area of ChartElement was fixed and I was able to move an ChartElement
when using the zoom. How I can do it?
class
Zoom
{
static
double
horizontalScale = 1;
static
double
verticalScale = 1;
public
static
double
HorizontalScale
{
get
{
return
horizontalScale;
}
set
{
horizontalScale = Math.Max(1, value);
}
}
public
static
double
VerticalScale
{
get
{
return
verticalScale;
}
set
{
verticalScale = Math.Max(1, value);
}
}
}
private
void
radChartViewAnalysis_MouseWheel(
object
sender, System.Windows.Forms.MouseEventArgs e)
{
Zoom.HorizontalScale += e.Delta / 3000.0;
Zoom.VerticalScale += e.Delta / 3000.0;
radChartViewAnalysis.ChartElement.View.Zoom(Zoom.HorizontalScale, Zoom.VerticalScale);
}