This is a migrated thread and some comments may be shown as answers.

How to do zooming in, zooming out and panning with mouse and without scrollbar?

3 Answers 60 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 28 Sep 2016, 07:41 AM
Hello. In my application I need to do zooming in, zoming out and panning with mouse and without scrollbar. I've been trying to found about it in forums, but if I find something there then these are examples for Silverlight and use obsolete (old) versions of Telerik. Please give me an example for WPF of zooming in, zoming out and panning with mouse and without scrollbar for latest (newest) version of Telerik.

3 Answers, 1 is accepted

Sort by
0
Dmitry
Top achievements
Rank 1
answered on 28 Sep 2016, 07:49 AM

For example I have such RadCartesionChart:

<telerik:RadCartesianChart Grid.Row="0">
            <telerik:SplineSeries CategoryBinding="Category" ValueBinding="Value" ItemsSource="{Binding Data}"/>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis MajorStepUnit="Second" LabelInterval="5" LabelFormat="hh:mm:ss" FontFamily="Segoe UI" PlotMode="OnTicks" TickOrigin="{Binding AlignmentDate}"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis FontFamily="Segoe UI" Title="Метр кубический/час [м.куб/ч]"/>
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="XY" MajorXLineDashArray="3,4" MajorYLineDashArray="3,4"/>
            </telerik:RadCartesianChart.Grid>
            <!--HERE ZOOMING AND PANNING WITH SCROLL BAR-->
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior ZoomMode="None"  PanMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
        </telerik:RadCartesianChart>

There is the example on http://www.telerik.com/forums/zooming-panning-with-mouse-and-without-scrollbar but it is for Silverlight and obsolete Telerik version. I'll be very grateful if you give me a WPF example of zooming and panning without scrollbar for latest Telerik version.

0
Dmitry
Top achievements
Rank 1
answered on 28 Sep 2016, 08:00 AM
I bag your pardon - ZoomMode poperty is aloso "Both".
0
Dmitry
Top achievements
Rank 1
answered on 28 Sep 2016, 02:03 PM
I bag your pardon but I've found solving of my problem here: http://www.telerik.com/forums/hide-the-scroll-bars-in-radcartesianchart . So I close this my post.
Tags
ChartView
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Dmitry
Top achievements
Rank 1
Share this question
or