private void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     KMManager.ChangeTransparency(this.ParentWindow, this.transSlider.Value);
     if (this.transSlider.Value == 0.0)
     {
         if (!RegistryManager.Instance.ShowKeyControlsOverlay)
         {
             KMManager.ShowOverlayWindow(this.ParentWindow, false, false);
         }
         this.ParentWindow.mCommonHandler.OnOverlayStateChanged(false);
     }
     else
     {
         KMManager.ShowOverlayWindow(this.ParentWindow, true, false);
         this.ParentWindow.mCommonHandler.OnOverlayStateChanged(true);
     }
     this.lastSliderValue = this.transSlider.Value;
 }