AnimatedCanvas Class
Represents a panel that positions child elements using explicit coordinates that are relative to the panel.
public class AnimatedCanvas : PanelBase, ILogicalParent, IVisualParent
- Implements:
- ILogicalParent IVisualParent
Constructors
AnimatedCanvas()
Initializes an instance of the class.
public AnimatedCanvas()
Methods
ArrangeElements(IList<UIElement>, Size)
Positions the specified elements and determines a size for a FrameworkElement-derived class.
public override Size ArrangeElements(IList<UIElement> elements, Size finalSize)
Parameter | Type | Description |
---|---|---|
elements | IList<UIElement> | The elements to be arranged. |
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.
GetBottom(UIElement)
Gets the value of the BottomProperty attached property for the specified object.
[AttachedPropertyBrowsableForChildren]
[TypeConverter(typeof(LengthConverter))]
public static double GetBottom(UIElement element)
Parameter | Type | Description |
---|---|---|
element | UIElement | The element from which the property value is read. |
Returns
- double:
The object's value.
GetLayoutClip(Size)
Returns a geometry for a clipping mask. The mask applies if the layout system attempts to arrange an element that is larger than the available display space.
protected override Geometry GetLayoutClip(Size layoutSlotSize)
Parameter | Type | Description |
---|---|---|
layoutSlotSize | Size | The size of the part of the element that does visual presentation. |
Returns
- Geometry:
The clipping geometry.
GetLeft(UIElement)
Gets the value of the LeftProperty attached property for the specified object.
[AttachedPropertyBrowsableForChildren]
[TypeConverter(typeof(LengthConverter))]
public static double GetLeft(UIElement element)
Parameter | Type | Description |
---|---|---|
element | UIElement | The element from which the property value is read. |
Returns
- double:
The object's value.
GetRight(UIElement)
Gets the value of the RightProperty attached property for the specified object.
[AttachedPropertyBrowsableForChildren]
[TypeConverter(typeof(LengthConverter))]
public static double GetRight(UIElement element)
Parameter | Type | Description |
---|---|---|
element | UIElement | The element from which the property value is read. |
Returns
- double:
The object's value.
GetTop(UIElement)
Gets the value of the TopProperty attached property for the specified object.
[AttachedPropertyBrowsableForChildren]
[TypeConverter(typeof(LengthConverter))]
public static double GetTop(UIElement element)
Parameter | Type | Description |
---|---|---|
element | UIElement | The element from which the property value is read. |
Returns
- double:
The object's value.
MeasureElements(IList<UIElement>, Size)
Measures the size in layout required for the specified elements and determines a size for the FrameworkElement-derived class.
public override Size MeasureElements(IList<UIElement> elements, Size availableSize)
Parameter | Type | Description |
---|---|---|
elements | IList<UIElement> | The elements to be measured. |
availableSize | Size | The available size that this element can give to the specified elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
- Size:
The size that this element determines it needs during layout, based on its calculations of the specified elements.
SetBottom(UIElement, double)
Sets the value of the BottomProperty attached property to the specified object.
public static void SetBottom(UIElement element, double value)
Parameter | Type | Description |
---|---|---|
element | UIElement | The element to which the attached property is written. |
value | double | The value to set. |
SetLeft(UIElement, double)
Sets the value of the LeftProperty attached property to the specified object.
public static void SetLeft(UIElement element, double value)
Parameter | Type | Description |
---|---|---|
element | UIElement | The element to which the attached property is written. |
value | double | The value to set. |
SetRight(UIElement, double)
Sets the value of the RightProperty attached property to the specified object.
public static void SetRight(UIElement element, double value)
Parameter | Type | Description |
---|---|---|
element | UIElement | The element to which the attached property is written. |
value | double | The value to set. |
SetTop(UIElement, double)
Sets the value of the TopProperty attached property to the specified object.
public static void SetTop(UIElement element, double value)
Parameter | Type | Description |
---|---|---|
element | UIElement | The element to which the attached property is written. |
value | double | The value to set. |
Fields
BottomProperty
Identifies the Bottom
dependency property. This field is read-only.
public static readonly DependencyProperty BottomProperty
LeftProperty
Identifies the Left
dependency property. This field is read-only.
public static readonly DependencyProperty LeftProperty
RightProperty
Identifies the Right
dependency property. This field is read-only.
public static readonly DependencyProperty RightProperty
TopProperty
Identifies the Top
dependency property. This field is read-only.
public static readonly DependencyProperty TopProperty
Inherited Members
- PanelBase.AnimationCountProperty
- PanelBase.ArrangeAnimationProperty
- PanelBase.ArrangeHeightAnimatedProperty
- PanelBase.ArrangeStateProperty
- PanelBase.ArrangeWidthAnimatedProperty
- PanelBase.ArrangeXAnimatedProperty
- PanelBase.ArrangeYAnimatedProperty
- PanelBase.IsAnimatedProperty
- PanelBase.IsLayoutUpdatePendingProperty
- PanelBase.AreLeavingElementsAnimatedProperty
- PanelBase.ArrangeElement(UIElement, bool)
- PanelBase.ArrangeElement(UIElement, Rect?, bool)
- PanelBase.ArrangeElement(PanelBase, UIElement, bool)
- PanelBase.ArrangeElement(PanelBase, UIElement, Rect?, bool)
- PanelBase.GetArrangeHeightAnimated(UIElement)
- PanelBase.SetArrangeHeightAnimated(UIElement, double)
- PanelBase.ArrangeOverride(Size)
- PanelBase.GetArrangeRectAnimated(UIElement)
- PanelBase.GetArrangeState(UIElement)
- PanelBase.SetArrangeState(UIElement, ArrangeState)
- PanelBase.GetArrangeWidthAnimated(UIElement)
- PanelBase.SetArrangeWidthAnimated(UIElement, double)
- PanelBase.GetArrangeXAnimated(UIElement)
- PanelBase.SetArrangeXAnimated(UIElement, double)
- PanelBase.GetArrangeYAnimated(UIElement)
- PanelBase.SetArrangeYAnimated(UIElement, double)
- PanelBase.GetIsAnimated(UIElement)
- PanelBase.SetIsAnimated(UIElement, bool)
- PanelBase.MeasureOverride(Size)
- PanelBase.GetVisualChild(int)
- PanelBase.OnVisualChildrenChanged(DependencyObject, DependencyObject)
- PanelBase.ArrangeAnimation
- PanelBase.ArrangeAnimationResolved
- PanelBase.IsLayoutUpdatePending
- PanelBase.AreLeavingElementsAnimated
- PanelBase.HasLeavingChildren
- PanelBase.LeavingChildren
- PanelBase.VisualChildrenCount