Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EyedropperToolButton"/> class.
        /// </summary>
        public EyedropperToolButton()
        {
            DefaultStyleKey = typeof(EyedropperToolButton);
            _eyedropper     = new Eyedropper();

            OwnerWindow = Window.GetWindow(this);

            Loaded += EyedropperToolButton_Loaded;
        }
Exemplo n.º 2
0
 private void Eyedropper_PickStarted(Eyedropper sender, EventArgs args)
 {
     PickStarted?.Invoke(this, args);
 }
Exemplo n.º 3
0
 private void Eyedropper_ColorChanged(Eyedropper sender, EyedropperColorChangedEventArgs args)
 {
     Color = args.NewColor;
     ColorChanged?.Invoke(this, args);
 }
Exemplo n.º 4
0
 private void Eyedropper_PickCompleted(Eyedropper sender, EventArgs args)
 {
     EyedropperEnabled = false;
     PickCompleted?.Invoke(this, args);
 }