ZoomScrollSettings in XAML

2 posts, 0 answers
  1. Ryan Overton
    Ryan Overton avatar
    12 posts
    Member since:
    Oct 2009

    Posted 21 Apr 2010 Link to this post

    Does anyone know how to set the ZoomScrollSettings via XAML? Or is this not currently supported. I am currently implementing an MVVM approach to a charting program, and am not able to figure out how/find documentation on setting this through XAML. I have achieved the desired effect using the code-behind to set the setttings, but would rather use XAML.

    Also, are there any plans to support the setting of these properties through Blend?

    Thanks,
    Ryan
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 26 Apr 2010 Link to this post

    Hello Ryan,

    The markup should look like this:

    <telerik:RadChart x:Name="hydroChart" >
        <telerik:RadChart.DefaultView>
            <telerikChart:ChartDefaultView>
                <telerikChart:ChartDefaultView.ChartArea>
                    <telerikChart:ChartArea >
                        <telerikChart:ChartArea.ZoomScrollSettingsX>
                            <telerikChart:ZoomScrollSettings MinZoomRange="0" RangeEnd="1" RangeStart="0" ScrollMode="None"/>
                        </telerikChart:ChartArea.ZoomScrollSettingsX>
                    </telerikChart:ChartArea>
                </telerikChart:ChartDefaultView.ChartArea>
            </telerikChart:ChartDefaultView>
        </telerik:RadChart.DefaultView>

    You can drop the ChartArea in the form and configure the ZoomScrollSettings. Unfortunately, the ChartDefaultView is not currently available in the assets library, so you will have to type the markup for it.

    Best regards,
    Ves
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top