Exemplo n.º 1
0
        public static void OnYChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SystemDrawingPointEditor control = d as SystemDrawingPointEditor;

            int newValue = (int)e.NewValue;

            if (newValue != control.Point.Y)
            {
                control.Point = new System.Drawing.Point(control.X, newValue);
            }
        }
Exemplo n.º 2
0
        public static void OnPointChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SystemDrawingPointEditor control = d as SystemDrawingPointEditor;

            System.Drawing.Point newValue = (System.Drawing.Point)e.NewValue;

            if (control.X != newValue.X)
            {
                control.X = newValue.X;
            }
            if (control.Y != newValue.Y)
            {
                control.Y = newValue.Y;
            }
        }