AxisCanvas
The AxisCanvas provides an auto-sizing canvas for the axis labels
Inherits: Panel
Implements: ISuspendable
Properties
ClipToBounds : bool
Gets or sets the value which indicates whether to clip the content of this element.
IsSuspended : bool
Gets a value indicating whether updates for the target are currently suspended
SizeHeightToContent : bool
Gets or sets a value indicating whether the canvas should size its height to its content.
SizeWidthToContent : bool
Gets or sets a value indicating whether the dynamic canvas should size its width to its content.
Methods
AdjustArrangedRectPosition(Rect, Size) : Rect
Adjust position of element before arranging
- arrangedRect
- Rect of current element
- arrangeSize
- The size to arrange element within
ArrangeOverride(Size) : Size
Arranges all children in the correct position.
- arrangeSize
- The size to arrange element's within.
Returns: The size that element's were arranged in.
DecrementSuspend()
Called by IUpdateSuspender each time a target suspender is disposed. When the final target suspender has been disposed, ResumeUpdates is called
GetArrangedRect(Size, UIElement) : Rect
Get arranged rectangle of element
- arrangeSize
- The size to arrange element within
- element
- The element which need to be arranged
Returns: Arranged Rect of element
GetBottom(UIElement) : double
Gets the value of the Bottom attached property for a specified UIElement.
- element
- The UIElement from which the property value is read.
Returns: The Bottom property value for the UIElement.
GetCenterBottom(UIElement) : double
Gets the value of the CenterBottom attached property for a specified UIElement.
- element
- The UIElement from which the property value is read.
Returns: The CenterBottom property value for the UIElement.
GetCenterLeft(UIElement) : double
Gets the value of the CenterLeft attached property for a specified UIElement.
- element
- The UIElement from which the property value is read.
Returns: The CenterLeft property value for the UIElement.
GetCenterRight(UIElement) : double
Gets the value of the CenterRight attached property for a specified UIElement.
- element
- The UIElement from which the property value is read.
Returns: The CenterRight property value for the UIElement.
GetCenterTop(UIElement) : double
Gets the value of the CenterTop attached property for a specified UIElement.
- element
- The UIElement from which the property value is read.
Returns: The CenterTop property value for the UIElement.
GetLayoutClip(Size) : Geometry
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.
- layoutSlotSize
- The size of the part of the element that does visual presentation.
Returns: The clipping geometry.
GetLeft(UIElement) : double
Gets the value of the Left attached property for a specified UIElement.
- element
- The UIElement from which the property value is read.
Returns: The Left property value for the UIElement.
GetRight(UIElement) : double
Gets the value of the Right attached property for a specified UIElement.
- element
- The UIElement from which the property value is read.
Returns: The Right property value for the UIElement.
GetTop(UIElement) : double
Gets the value of the Top attached property for a specified UIElement.
- element
- The UIElement from which the property value is read.
Returns: The Top property value for the UIElement.
Invalidate()
Invalidates the position of child elements.
MeasureOverride(Size) : Size
Measures all the children and returns their size.
- constraint
- The available size.
Returns: The desired size.
ResumeUpdates(IUpdateSuspender)
Resumes updates on the target, intended to be called by IUpdateSuspender
- suspender
SetBottom(UIElement, double)
Sets the value of the Bottom attached property to a specified UIElement.
- element
- The UIElement to which the attached property is written.
- value
- The needed Bottom value.
SetCenterBottom(UIElement, double)
Sets the value of the CenterBottom attached property to a specified UIElement.
- element
- The UIElement to which the attached property is written.
- value
- The needed CenterBottom value.
SetCenterLeft(UIElement, double)
Sets the value of the CenterLeft attached property to a specified UIElement.
- element
- The UIElement to which the attached property is written.
- value
- The needed CenterLeft value.
SetCenterRight(UIElement, double)
Sets the value of the CenterRight attached property to a specified UIElement.
- element
- The UIElement to which the attached property is written.
- value
- The needed CenterRight value.
SetCenterTop(UIElement, double)
Sets the value of the CenterTop attached property to a specified UIElement.
- element
- The UIElement to which the attached property is written.
- value
- The needed CenterTop value.
SetLeft(UIElement, double)
Sets the value of the Left attached property to a specified UIElement.
- element
- The UIElement to which the attached property is written.
- value
- The needed Left value.
SetRight(UIElement, double)
Sets the value of the Right attached property to a specified UIElement.
- element
- The UIElement to which the attached property is written.
- value
- The needed Right value.
SetTop(UIElement, double)
Sets the value of the Top attached property to a specified UIElement.
- element
- The UIElement to which the attached property is written.
- value
- The needed Top value.
SuspendUpdates() : IUpdateSuspender
Suspends drawing updates on the target until the returned object is disposed, when a final draw call will be issued
Returns: The disposable Update Suspender
Fields
BottomProperty : DependencyProperty
Identifies the Bottom dependency property.
CenterBottomProperty : DependencyProperty
Identifies the CenterBottom dependency property.
CenterLeftProperty : DependencyProperty
Identifies the CenterLeft dependency property.
CenterRightProperty : DependencyProperty
Identifies the CenterRight dependency property.
CenterTopProperty : DependencyProperty
Identifies the CenterTop dependency property.
ClipToBoundsProperty : DependencyProperty
Identifies the SizeWidthToContent dependency property.
LeftProperty : DependencyProperty
Identifies the Left dependency property.
RightProperty : DependencyProperty
Identifies the Right dependency property.
SizeHeightToContentProperty : DependencyProperty
Identifies the SizeHeightToContent dependency property.
SizeWidthToContentProperty : DependencyProperty
Identifies the SizeWidthToContent dependency property.
TopProperty : DependencyProperty
Identifies the Top dependency property.