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

ZoomScrollSettings in XAML

1 Answer 67 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ryan Overton
Top achievements
Rank 2
Ryan Overton asked on 21 Apr 2010, 09:42 PM
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

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 26 Apr 2010, 04:09 PM
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.
Tags
Chart
Asked by
Ryan Overton
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or