/// <summary>
 /// Initializes a new instance of the <see cref="EyedropperToolButton"/> class.
 /// </summary>
 public EyedropperToolButton()
 {
     DefaultStyleKey = typeof(EyedropperToolButton);
     RegisterPropertyChangedCallback(IsEnabledProperty, OnIsEnabledChanged);
     _eyedropper  = new Eyedropper();
     this.Loaded += EyedropperToolButton_Loaded;
 }
 private void Eyedropper_PickCompleted(Eyedropper sender, EventArgs args)
 {
     EyedropperEnabled = false;
     PickCompleted?.Invoke(this, args);
 }
 private void Eyedropper_ColorChanged(Eyedropper sender, EyedropperColorChangedEventArgs args)
 {
     Color = args.NewColor;
     ColorChanged?.Invoke(this, args);
 }
 private void Eyedropper_PickStarted(Eyedropper sender, EventArgs args)
 {
     PickStarted?.Invoke(this, args);
 }