private void OnSliderValueChanged(PointEditor o, AvaloniaPropertyChangedEventArgs e) { if (_isUpdating) { return; } switch (DisplayMember) { case PointDisplayMember.X: EditValue = new Point(Math.Round(Value, AutoToolTipPrecision), EditValue.Y); break; case PointDisplayMember.Y: EditValue = new Point(EditValue.X, Math.Round(Value, AutoToolTipPrecision)); break; default: break; } }
private static Point OnEditValuePropertyCoerceValue(PointEditor o, Point e) { return(e); }
private void OnEditValuePropertyChanged(PointEditor editor, object e) { editor.UpdateValue(); }