Table of Contents

TimeLineListItemAdorner 类

命名空间
ClassIsland.Core
程序集
ClassIsland.Core.dll
public class TimeLineListItemAdorner : Adorner, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
继承
TimeLineListItemAdorner
实现
继承成员

构造函数

TimeLineListItemAdorner(UIElement, ControlTemplate)

public TimeLineListItemAdorner(UIElement adornedElement, ControlTemplate template)

参数

adornedElement UIElement
template ControlTemplate

属性

VisualChildrenCount

Gets the number of visual child elements within this element.

protected override int VisualChildrenCount { get; }

属性值

int

The number of visual child elements for this element.

方法

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)

参数

finalSize Size

The final area within the parent that this element should use to arrange itself and its children.

返回

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)

参数

index int

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

返回

Visual

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

MeasureOverride(Size)

Implements any custom measuring behavior for the adorner.

protected override Size MeasureOverride(Size constraint)

参数

constraint Size

A size to constrain the adorner to.

返回

Size

A Size object representing the amount of layout space needed by the adorner.

OnRender(DrawingContext)

When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

protected override void OnRender(DrawingContext drawingContext)

参数

drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.