Class AdornerContainer
Simple helper class to allow any UIElements to be used as an Adorner.
public class AdornerContainer : Adorner, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
- Inheritance
-
AdornerContainer
- Implements
- Inherited Members
- Extension Methods
Constructors
AdornerContainer(UIElement)
public AdornerContainer(UIElement adornedElement)
Parameters
adornedElement
UIElement
Properties
Child
public UIElement Child { get; set; }
Property Value
VisualChildrenCount
Gets the number of visual child elements within this element.
protected override int VisualChildrenCount { get; }
Property Value
- int
The number of visual child elements for this element.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
protected override Size ArrangeOverride(Size finalSize)
Parameters
finalSize
SizeThe final area within the parent that this element should use to arrange itself and its children.
Returns
- Size
The actual size used.
GetVisualChild(int)
Overrides GetVisualChild(int), and returns a child at the specified index from a collection of child elements.
protected override Visual GetVisualChild(int index)
Parameters
index
intThe zero-based index of the requested child element in the collection.