Table of Contents

Class ContentAdorner

Namespace
The.WPF.Controls
Assembly
Instagile.WPF.dll
public class ContentAdorner : Adorner, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Inheritance
ContentAdorner
Implements
Inherited Members

Constructors

ContentAdorner(UIElement)

public ContentAdorner(UIElement adornedElement)

Parameters

adornedElement UIElement

Properties

Content

public FrameworkElement? Content { get; set; }

Property Value

FrameworkElement

Offset

public Point Offset { get; set; }

Property Value

Point

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 Size

The 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 int

The zero-based index of the requested child element in the collection.

Returns

Visual

The requested child element. This should not return null; if the provided index is out of range, an exception is thrown.