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