Draws an axis given axis data.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Control AxisVisual object
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a Framework
Parameter | Type | Description |
---|---|---|
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.
DrawMajorTickAtPosition(double, Size)
Draws a major tick at a given position on the axis.
Parameter | Type | Description |
---|---|---|
position | double | The position to draw the tick at. |
plotSize | Size | Size of the plot. |
DrawMinorTickAtPosition(double, Size)
Draws a minor tick at a given position on the axis.
Parameter | Type | Description |
---|---|---|
position | double | The position to draw the tick at. |
plotSize | Size | Size of the plot. |
DrawSpine(Size)
Draws an axis spine.
Parameter | Type | Description |
---|---|---|
plotSize | Size |
GetTitleTemplateFromResources(ResourceDictionary)
Retrieves the appropriate Data
Parameter | Type | Description |
---|---|---|
resources | Resource |
The Resource |
Returns
- Data
Template : The template for the axis title.
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for
the Framework
Parameter | Type | Description |
---|---|---|
availableSize | Size | The available size that this element can give to child elements. Infinity can be specified as a argumentValue 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 child element sizes.
PlaceLabelAtPosition(TextBlock, double, double, Size)
Place the axis label at the given position.
Parameter | Type | Description |
---|---|---|
label | Text |
The axis label to lay out. |
position | double | The position to draw the axis label at. |
angle | double | The angle to draw the axis label at. |
plotSize | Size | Size of the plot. |
Exceptions
Type | Condition |
---|---|
Argument |
label |
UpdateTitlePosition(Size)
Updates the title position.
Parameter | Type | Description |
---|---|---|
plotSize | Size |
Inherited Members
-
Axis
Visual. Infinity -
Axis
Visual. Are Any Ticks Visible(Size) -
Axis
Visual. Get Text Block Measured Size(Text Block) -
Axis
Visual. Draw Line On Geometry(Path Geometry, double, double, double, double) -
Axis
Visual. Get Real Number Or Default(double, double) -
Axis
Visual. Is Spine Visible() -
Axis
Visual. On Apply Template() -
Axis
Visual. Refresh(Size) -
Axis
Visual. Tick Major Mid Pixel -
Axis
Visual. Tick Minor Mid Pixel