Table of Contents

Class ControlTemplateAdorner

Namespace
HeBianGu.Control.Adorner
Assembly
HeBianGu.Control.Adorner.dll
public class ControlTemplateAdorner : VisualCollectionAdornerBase, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Inheritance
ControlTemplateAdorner
Implements
Derived
Inherited Members
Extension Methods

Constructors

ControlTemplateAdorner(UIElement)

public ControlTemplateAdorner(UIElement adornedElement)

Parameters

adornedElement UIElement

Fields

TemplateProperty

public static readonly DependencyProperty TemplateProperty

Field Value

DependencyProperty

Properties

_contentControl

protected ContentControl _contentControl { get; set; }

Property Value

ContentControl

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.

CreateTemplate()

protected virtual ControlTemplate CreateTemplate()

Returns

ControlTemplate

GetTemplate(DependencyObject)

public static ControlTemplate GetTemplate(DependencyObject obj)

Parameters

obj DependencyObject

Returns

ControlTemplate

MeasureOverride(Size)

Implements any custom measuring behavior for the adorner.

protected override Size MeasureOverride(Size constraint)

Parameters

constraint Size

A size to constrain the adorner to.

Returns

Size

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

OnTemplateChanged(DependencyObject, DependencyPropertyChangedEventArgs)

public static void OnTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

Parameters

d DependencyObject
e DependencyPropertyChangedEventArgs

RefreshLayout()

protected virtual void RefreshLayout()

SetTemplate(DependencyObject, ControlTemplate)

public static void SetTemplate(DependencyObject obj, ControlTemplate value)

Parameters

obj DependencyObject
value ControlTemplate