示例#1
0
        internal void OnAdornerAdd(AdornerPanel item)
        {
            if (!isVisible)
            {
                return;
            }

            item.SetAdornedElement(this.ExtendedItem.View, this.ExtendedItem);

            IDesignPanel avs = Services.GetService <IDesignPanel>();

            avs.Adorners.Add(item);
        }
示例#2
0
        /// <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));
        }
示例#3
0
 public override void Arrange(AdornerPanel panel, UIElement adorner, Size adornedElementSize)
 {
     adorner.Arrange(new Rect(adornedElementSize));
 }
示例#4
0
 /// <summary>
 /// Arranges the adorner element on the specified adorner panel.
 /// </summary>
 public abstract void Arrange(AdornerPanel panel, UIElement adorner, Size adornedElementSize);