Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Zoom function in Silverlight
posted

Hi,

Is it possible to set scale, and scroll in the control tag or at the load time. My tag Zoom tag is as below.

        <IGControls:XamWebZoombar x:Name="igZoomBar"
            PreviewSizeUpdated="XamWebZoombar_PreviewSizeUpdated"
            Width="240" Height="50" Minimum="1"
            Maximum="20"
            ZoomChanged="XamWebZoombar_ZoomChanged"
            ZoomChanging="XamWebZoombar_ZoomChanging" >
        </IGControls:XamWebZoombar>

I tried to set like this.

private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            Infragistics.Silverlight.Controls.Range rnge = new Infragistics.Silverlight.Controls.Range();
            rnge.FromScaleScroll(0.4, 0.2);
            //igZoomBar.Range = rnge;
            igZoomBar.SetValue(XamWebZoombar.RangeProperty, rnge);
        }

But, not success. Please let me know. How i can set the initial scale and scroll position.