Exemplo n.º 1
0
        private static void OnLeftChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CanvasItemControl target = (CanvasItemControl)d;

            Canvas.SetLeft(target, target.Left);
            target.OnPropertyChanged("Left");
        }
Exemplo n.º 2
0
        private static void OnTopChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CanvasItemControl target = (CanvasItemControl)d;

            Canvas.SetTop(target, target.Top);
            target.OnPropertyChanged("Top");
        }