YAxisVisual Class
Draws an axis given axis data.
public class YAxisVisual : AxisVisual
- Inheritance:
- object Visual UIElement FrameworkElement Control AxisVisual object
Methods
ArrangeOverride(Size)
Called to arrange and size the content of a Control object.
protected override Size ArrangeOverride(Size finalSize)
| Parameter | Type | Description |
|---|---|---|
| finalSize | Size |
Returns
- Size:
The size of the control.
DrawMajorTickAtPosition(double, Size)
Draws a major tick at a given position on the axis.
protected override void DrawMajorTickAtPosition(double position, Size plotSize)
| 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.
protected override void DrawMinorTickAtPosition(double position, Size plotSize)
| Parameter | Type | Description |
|---|---|---|
| position | double | The position to draw the tick at. |
| plotSize | Size | Size of the plot. |
DrawSpine(Size)
Draws an axis spine.
protected override void DrawSpine(Size plotSize)
| Parameter | Type | Description |
|---|---|---|
| plotSize | Size |
GetTitleTemplateFromResources(ResourceDictionary)
Retrieves the appropriate DataTemplate for the axis title from the given ResourceDictionary.
protected override DataTemplate GetTitleTemplateFromResources(ResourceDictionary resources)
| Parameter | Type | Description |
|---|---|---|
| resources | ResourceDictionary | The ResourceDictionary to retrieve the title template from. |
Returns
- DataTemplate:
The template for the axis title.
MeasureOverride(Size)
Called to remeasure a control.
protected override Size MeasureOverride(Size availableSize)
| Parameter | Type | Description |
|---|---|---|
| availableSize | Size |
Returns
- Size:
The size of the control, up to the maximum specified by
constraint.
PlaceLabelAtPosition(TextBlock, double, double, Size)
Place the axis label at the given position.
protected override void PlaceLabelAtPosition(TextBlock label, double position, double angle, Size plotSize)
| Parameter | Type | Description |
|---|---|---|
| label | TextBlock | 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. |
UpdateTitlePosition(Size)
Updates the title position.
protected override void UpdateTitlePosition(Size plotSize)
| Parameter | Type | Description |
|---|---|---|
| plotSize | Size |
Inherited Members
- AxisVisual.Infinity
- AxisVisual.AreAnyTicksVisible(Size)
- AxisVisual.GetTextBlockMeasuredSize(TextBlock)
- AxisVisual.DrawLineOnGeometry(PathGeometry, double, double, double, double)
- AxisVisual.GetRealNumberOrDefault(double, double)
- AxisVisual.IsSpineVisible()
- AxisVisual.OnApplyTemplate()
- AxisVisual.Refresh(Size)
- AxisVisual.TickMajorMidPixel
- AxisVisual.TickMinorMidPixel