internal void OnAdornerAdd(AdornerPanel item) { if (!isVisible) { return; } item.SetAdornedElement(this.ExtendedItem.View, this.ExtendedItem); IDesignPanel avs = Services.GetService <IDesignPanel>(); avs.Adorners.Add(item); }
/// <summary> /// Arranges the adorner element on the specified adorner panel. /// </summary> public override void Arrange(AdornerPanel panel, UIElement adorner, Size adornedElementSize) { Size adornerSize = CalculateSize(adorner, adornedElementSize); adorner.Arrange(new Rect(CalculatePosition(adornedElementSize, adornerSize), adornerSize)); }
public override void Arrange(AdornerPanel panel, UIElement adorner, Size adornedElementSize) { adorner.Arrange(new Rect(adornedElementSize)); }
/// <summary> /// Arranges the adorner element on the specified adorner panel. /// </summary> public abstract void Arrange(AdornerPanel panel, UIElement adorner, Size adornedElementSize);