internal void OnAdornerRemove(AdornerPanel item)
        {
            if (!isVisible)
            {
                return;
            }

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

            avs.Adorners.Remove(item);
        }
        /// <summary>
        /// Adds several UIElements as adorners with the specified placement.
        /// </summary>
        protected void AddAdorners(AdornerPlacement placement, params UIElement[] adorners)
        {
            AdornerPanel p = new AdornerPanel();

            foreach (UIElement adorner in adorners)
            {
                AdornerPanel.SetPlacement(adorner, placement);
                p.Children.Add(adorner);
            }
            this.Adorners.Add(p);
        }
        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));
        }
예제 #5
0
 public override void Arrange(AdornerPanel panel, UIElement adorner, Size adornedElementSize)
 {
     adorner.Arrange(new Rect(adornedElementSize));
 }
예제 #6
0
 /// <summary>
 /// Arranges the adorner element on the specified adorner panel.
 /// </summary>
 public abstract void Arrange(AdornerPanel panel, UIElement adorner, Size adornedElementSize);