private void CreateAdorner() { this.adornerLayer = AdornerLayer.GetAdornerLayer(this); this.adorner = new UIElementAdorner(this); this.adornerContent = new ContentControl(); this.adornerContent.Name = "ResizerAdornerContent"; this.adornerContent.HorizontalContentAlignment = HorizontalAlignment.Stretch; this.adornerContent.VerticalContentAlignment = VerticalAlignment.Stretch; this.adornerContent.ContentTemplate = this.DraggingTemplate; this.adorner.Child = this.adornerContent; }
static private void ChildProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { UIElementAdorner obj = (UIElementAdorner)o; obj.OnChildChanged(new PropertyChangedEventArgs <UIElement>((UIElement)e.OldValue, (UIElement)e.NewValue)); }