private void MySlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            int newval = (int)e.NewValue;

            txtBrightness.Text = newval.ToString();
            brightness.setBrightness(e.NewValue);
        }