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

4 posts, 0 answers
  1. Yaroslav
    Yaroslav avatar
    123 posts
    Member since:
    Jan 2016

    Posted 28 Sep Link to this post

    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.
  2. Yaroslav
    Yaroslav avatar
    123 posts
    Member since:
    Jan 2016

    Posted 28 Sep in reply to Yaroslav Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Yaroslav
    Yaroslav avatar
    123 posts
    Member since:
    Jan 2016

    Posted 28 Sep in reply to Yaroslav Link to this post

    I bag your pardon - ZoomMode poperty is aloso "Both".
  5. Yaroslav
    Yaroslav avatar
    123 posts
    Member since:
    Jan 2016

    Posted 28 Sep in reply to Yaroslav Link to this post

    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.
Back to Top