예제 #1
0
 public EyedropperToolButton()
 {
     DefaultStyleKey = typeof(EyedropperToolButton);
     RegisterPropertyChangedCallback(IsEnabledProperty, OnIsEnabledChanged);
     _eyedropper  = new Eyedropper();
     this.Loaded += EyedropperToolButton_Loaded;
 }
예제 #2
0
 private void Eyedropper_ColorChanged(Eyedropper sender, ColorChangedEventArgs args)
 {
     Color = args.NewColor;
     ColorChanged?.Invoke(this, args);
 }
예제 #3
0
 private void Eyedropper_PickEnded(Eyedropper sender, EventArgs args)
 {
     EyedropperEnabled = false;
     PickEnded?.Invoke(this, args);
 }
예제 #4
0
 private void Eyedropper_PickStarted(Eyedropper sender, EventArgs args)
 {
     PickStarted?.Invoke(this, args);
 }