コード例 #1
0
        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;
            }
        }
コード例 #2
0
 private static Point OnEditValuePropertyCoerceValue(PointEditor o, Point e)
 {
     return(e);
 }
コード例 #3
0
 private void OnEditValuePropertyChanged(PointEditor editor, object e)
 {
     editor.UpdateValue();
 }