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