Пример #1
0
        private static void OnLeftChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CanvasItemControl target = (CanvasItemControl)d;

            Canvas.SetLeft(target, target.Left);
            target.OnPropertyChanged("Left");
        }
Пример #2
0
        private static void OnTopChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CanvasItemControl target = (CanvasItemControl)d;

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