Class ContentAdorner
public class ContentAdorner : Adorner, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
- Inheritance
-
ContentAdorner
- Implements
- Inherited Members
Constructors
ContentAdorner(UIElement)
public ContentAdorner(UIElement adornedElement)
Parameters
adornedElementUIElement
Properties
Content
public FrameworkElement? Content { get; set; }
Property Value
Offset
public Point Offset { 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
finalSizeSizeThe 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
indexintThe zero-based index of the requested child element in the collection.