Class ControlTemplateAdorner
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
Properties
_contentControl
protected ContentControl _contentControl { get; set; }
Property 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
GetTemplate(DependencyObject)
public static ControlTemplate GetTemplate(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
OnTemplateChanged(DependencyObject, DependencyPropertyChangedEventArgs)
public static void OnTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Parameters
RefreshLayout()
protected virtual void RefreshLayout()
SetTemplate(DependencyObject, ControlTemplate)
public static void SetTemplate(DependencyObject obj, ControlTemplate value)
Parameters
obj
DependencyObjectvalue
ControlTemplate