Not able to subscribe to valuechanged event on slider

Nov 11, 2010 at 6: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 8:59 PM
Edited Dec 2, 2010 at 8:59 PM

please any help about this ?