Table of Contents

Class DataTemplateAdorner

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

Constructors

DataTemplateAdorner(UIElement)

public DataTemplateAdorner(UIElement adornedElement)

Parameters

adornedElement UIElement

DataTemplateAdorner(UIElement, object)

public DataTemplateAdorner(UIElement adornedElement, object data)

Parameters

adornedElement UIElement
data object

Fields

DataProperty

应用窗体关闭和显示

public static readonly DependencyProperty DataProperty

Field Value

DependencyProperty

_contentPresenter

protected ContentPresenter _contentPresenter

Field Value

ContentPresenter

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

GetData(DependencyObject)

public static object GetData(DependencyObject obj)

Parameters

obj DependencyObject

Returns

object

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.

OnDataChanged(DependencyObject, DependencyPropertyChangedEventArgs)

public static void OnDataChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

Parameters

d DependencyObject
e DependencyPropertyChangedEventArgs

RefreshLayout()

protected virtual void RefreshLayout()

SetData(DependencyObject, object)

public static void SetData(DependencyObject obj, object value)

Parameters

obj DependencyObject
value object