private static void onSliderValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MySlider ms = d as MySlider;

            if (ms != null)
            {
                ms.setSliderValue((int)e.NewValue);
            }
        }
 async void myslider_SliderChanged(object sender, MySlider.SliderChangedEventArgs e)
 {
     var md = new Windows.UI.Popups.MessageDialog(e.Value.ToString());
     await md.ShowAsync();
 }