Exemplo n.º 1
0
        private static void OnPaletteChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ColorSelector owner = (ColorSelector)d;

            owner.PaletteRatio = 0.5;
        }
Exemplo n.º 2
0
        private static void OnPaletteRatioChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ColorSelector owner = (ColorSelector)d;

            owner.Marker.Position = new Point((double)e.NewValue, 1);
        }