Class DataTemplateAdorner
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
Fields
DataProperty
应用窗体关闭和显示
public static readonly DependencyProperty DataProperty
Field Value
_contentPresenter
protected ContentPresenter _contentPresenter
Field Value
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
SizeThe 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
GetData(DependencyObject)
public static object GetData(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
MeasureOverride(Size)
Implements any custom measuring behavior for the adorner.
protected override Size MeasureOverride(Size constraint)
Parameters
constraint
SizeA size to constrain the adorner to.
Returns
OnDataChanged(DependencyObject, DependencyPropertyChangedEventArgs)
public static void OnDataChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Parameters
RefreshLayout()
protected virtual void RefreshLayout()
SetData(DependencyObject, object)
public static void SetData(DependencyObject obj, object value)
Parameters
obj
DependencyObjectvalue
object