private static void OnPaletteRatioChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     ColorSelector owner = (ColorSelector)d;
     owner.Marker.Position = new Point((double)e.NewValue, 1);
 }
 private static void OnPaletteChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     ColorSelector owner = (ColorSelector)d;
     owner.PaletteRatio = 0.5;
 }