This project is read-only.

Not able to subscribe to valuechanged event on slider

Nov 11, 2010 at 7:53 PM

I have used the following code to susbscribe to valuechanged on slider for zoom, but it is never fired, what would be the correct approach to doing it? I'm on changeset 50624, branch SL4 using Visual Studio 2.010

c# code:

        private void MyZoomSlider_ValueChanged(object sender, System.Windows.RoutedPropertyChangedEventArgs<double> e)
            string a = (sender as ZoomSlider).Value.ToString();

the xaml code:

<de_zoomslider:ZoomSlider x:Name="MyZoomSlider" MapName="MyMap" ValueChanged="MyZoomSlider_ValueChanged" />
Dec 2, 2010 at 9:59 PM
Edited Dec 2, 2010 at 9:59 PM

please any help about this ?