Wpf chart zooming
Posted: Mon Jan 28, 2013 12:52 pm
How to zoom the chart with mouse right click in wpf?
Steema Software - Customer Support Forums
http://teechart.com/support/
I have increased the severity of bug number [TW16015460] because we will try to fix it to upcoming version of TeeChartWPF.Amazing ... how can such a fundamental part of this library be having such a serious bug?
If you want use zoom with right button, you need do the same as you do in Winforms as do in next lines of code:Anyways, if we need to implement it for WPF chart, how can we do it programatically? Please provide some sample code.
Code: Select all
private void InitializeChart()
{
Steema.TeeChart.WPF.Styles.Bar bar1 = new Steema.TeeChart.WPF.Styles.Bar(tChart1.Chart);
bar1.FillSampleValues();
tChart1.Zoom.MouseButton = MouseButton.Right;
}