private static void OnLeftChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CanvasItemControl target = (CanvasItemControl)d; Canvas.SetLeft(target, target.Left); target.OnPropertyChanged("Left"); }
private static void OnTopChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CanvasItemControl target = (CanvasItemControl)d; Canvas.SetTop(target, target.Top); target.OnPropertyChanged("Top"); }