Show / Hide Table of Contents

Class DisplayAxis

An axis that has a range.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
Axis
DisplayAxis
CategoryAxis
RangeAxis
Implements
IAxis
IRequireSeriesHost
Inherited Members
Axis.Location
Axis.LocationProperty
Axis.LocationChanged
Axis.DependentAxes
Axis.Orientation
Axis.OrientationProperty
Axis.OrientationChanged
Axis.RegisteredListeners
Axis.CanPlot(Object)
Axis.GetPlotAreaCoordinate(Object)
Axis.OnObjectRegistered(IAxisListener)
Axis.OnObjectUnregistered(IAxisListener)
Control.EnableBaseControlHandlingOfVisualStates
Control.ManageIsEnabled(Boolean)
Control.Background
Control.BackgroundProperty
Control.BorderBrush
Control.BorderBrushProperty
Control.BorderThickness
Control.BorderThicknessProperty
Control.FontWeight
Control.FontWeightProperty
Control.FontStyle
Control.FontStyleProperty
Control.Foreground
Control.ForegroundProperty
Control.FontFamily
Control.FontFamilyProperty
Control.FontSize
Control.FontSizeProperty
Control.TextDecorations
Control.TextDecorationsProperty
Control.Padding
Control.PaddingProperty
Control.HorizontalContentAlignment
Control.HorizontalContentAlignmentProperty
Control.VerticalContentAlignment
Control.VerticalContentAlignmentProperty
Control.TabIndex
Control.TabIndexProperty
Control.IsTabStop
Control.IsTabStopProperty
Control.TabNavigation
Control.TabNavigationProperty
Control.Template
Control.TemplateProperty
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.Focus()
Control.HandlesScrolling
Control.OnGotFocus(RoutedEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.CreateDomElement(Object, Object)
Control.CharacterSpacingProperty
Control.CharacterSpacing
Control.FontStretchProperty
Control.FontStretch
Control.OnDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnTextInputUpdate(TextCompositionEventArgs)
Control.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.LogicalChildren
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.OnCreateAutomationPeer()
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: OpenSilver.Controls.DataVisualization.Toolkit.dll
Syntax
public abstract class DisplayAxis : Axis, IControl, IFrameworkElement, IUIElement, IDependencyObject, IAxis, IRequireSeriesHost

Constructors

| Improve this Doc View Source

DisplayAxis()

Instantiates a new instance of the DisplayAxis class.

Declaration
protected DisplayAxis()

Fields

| Improve this Doc View Source

AxisGridName

The name of the axis grid template part.

Declaration
protected const string AxisGridName = "AxisGrid"
Field Value
Type Description
System.String
| Improve this Doc View Source

AxisLabelStyleProperty

Identifies the AxisLabelStyle dependency property.

Declaration
public static readonly DependencyProperty AxisLabelStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

AxisTitleName

The name of the axis title template part.

Declaration
protected const string AxisTitleName = "AxisTitle"
Field Value
Type Description
System.String
| Improve this Doc View Source

GridLineStyleProperty

Identifies the GridlineStyle dependency property.

Declaration
public static readonly DependencyProperty GridLineStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MajorTickMarkStyleProperty

Identifies the MajorTickMarkStyle dependency property.

Declaration
public static readonly DependencyProperty MajorTickMarkStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

MaximumAxisIntervalsPer200Pixels

Maximum intervals per 200 pixels.

Declaration
protected const double MaximumAxisIntervalsPer200Pixels = 8
Field Value
Type Description
System.Double
| Improve this Doc View Source

ShowGridLinesProperty

Identifies the ShowGridLines dependency property.

Declaration
public static readonly DependencyProperty ShowGridLinesProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TitleProperty

Identifies the Title dependency property.

Declaration
public static readonly DependencyProperty TitleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TitleStyleProperty

Identifies the TitleStyle dependency property.

Declaration
public static readonly DependencyProperty TitleStyleProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

ActualLength

Gets the actual length.

Declaration
protected double ActualLength { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

AxisLabelStyle

Gets or sets the style used for the axis labels.

Declaration
public Style AxisLabelStyle { get; set; }
Property Value
Type Description
Style
| Improve this Doc View Source

GridLineStyle

Gets or sets the Style of the Axis's gridlines.

Declaration
public Style GridLineStyle { get; set; }
Property Value
Type Description
Style
| Improve this Doc View Source

MajorTickMarkStyle

Gets or sets the style applied to the Axis tick marks.

Declaration
public Style MajorTickMarkStyle { get; set; }
Property Value
Type Description
Style

The Style applied to the Axis tick marks.

| Improve this Doc View Source

SeriesHost

Gets or sets the series host.

Declaration
public ISeriesHost SeriesHost { get; set; }
Property Value
Type Description
ISeriesHost
| Improve this Doc View Source

ShowGridLines

Gets or sets a value indicating whether grid lines should be shown.

Declaration
public bool ShowGridLines { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Title

Gets or sets the title property.

Declaration
public object Title { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

TitleStyle

Gets or sets the style applied to the Axis title.

Declaration
public Style TitleStyle { get; set; }
Property Value
Type Description
Style

The Style applied to the Axis title.

Methods

| Improve this Doc View Source

CreateAxisLabel()

Creates an axis label.

Declaration
protected virtual Control CreateAxisLabel()
Returns
Type Description
Control

The new axis label.

| Improve this Doc View Source

CreateMajorTickMark()

Creates a major axis tick mark.

Declaration
protected virtual Line CreateMajorTickMark()
Returns
Type Description
Line

A line to used to render a tick mark.

| Improve this Doc View Source

CreateTickMark(Style)

Creates a tick mark and applies a style to it.

Declaration
protected Line CreateTickMark(Style style)
Parameters
Type Name Description
Style style

The style to apply.

Returns
Type Description
Line

The newly created tick mark.

| Improve this Doc View Source

GetLength(Size)

Returns the length of the axis given an available size.

Declaration
protected double GetLength(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Returns
Type Description
System.Double

The length of the axis given an available size.

| Improve this Doc View Source

GetMajorGridLineCoordinates(Size)

Returns the coordinates to use for the grid line control.

Declaration
protected abstract IEnumerable<UnitValue> GetMajorGridLineCoordinates(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Returns
Type Description
System.Collections.Generic.IEnumerable<UnitValue>

A sequence of coordinates at which to draw grid lines.

| Improve this Doc View Source

Invalidate()

Invalidates the axis.

Declaration
protected void Invalidate()
| Improve this Doc View Source

MeasureOverride(Size)

Renders the axis.

Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Returns
Type Description
Size

The required size.

Overrides
Control.MeasureOverride(Size)
| Improve this Doc View Source

OnApplyTemplate()

Retrieves template parts and configures layout.

Declaration
public override void OnApplyTemplate()
Overrides
Control.OnApplyTemplate()
| Improve this Doc View Source

OnAxisLabelStylePropertyChanged(Style, Style)

AxisLabelStyleProperty property changed handler.

Declaration
protected virtual void OnAxisLabelStylePropertyChanged(Style oldValue, Style newValue)
Parameters
Type Name Description
Style oldValue

Old value.

Style newValue

New value.

| Improve this Doc View Source

OnDependentAxesCollectionChanged()

Updates the grid lines element if a suitable dependent axis has been added to a radial axis.

Declaration
protected override void OnDependentAxesCollectionChanged()
Overrides
Axis.OnDependentAxesCollectionChanged()
| Improve this Doc View Source

OnInvalidated(RoutedEventArgs)

Updates the visual appearance of the axis when it is invalidated.

Declaration
protected override void OnInvalidated(RoutedEventArgs args)
Parameters
Type Name Description
RoutedEventArgs args

Information for the invalidated event.

Overrides
Axis.OnInvalidated(RoutedEventArgs)
| Improve this Doc View Source

OnLocationPropertyChanged(AxisLocation, AxisLocation)

Arranges the grid when the location property is changed.

Declaration
protected override void OnLocationPropertyChanged(AxisLocation oldValue, AxisLocation newValue)
Parameters
Type Name Description
AxisLocation oldValue

The old location.

AxisLocation newValue

The new location.

Overrides
Axis.OnLocationPropertyChanged(AxisLocation, AxisLocation)
| Improve this Doc View Source

OnMajorTickMarkStylePropertyChanged(Style, Style)

MajorTickMarkStyleProperty property changed handler.

Declaration
protected virtual void OnMajorTickMarkStylePropertyChanged(Style oldValue, Style newValue)
Parameters
Type Name Description
Style oldValue

Old value.

Style newValue

New value.

| Improve this Doc View Source

OnOrientationPropertyChanged(AxisOrientation, AxisOrientation)

Reformulates the grid when the orientation is changed. Grid is either separated into two columns or two rows. The title is inserted with the outermost section from the edge and an oriented panel is inserted into the innermost section.

Declaration
protected override void OnOrientationPropertyChanged(AxisOrientation oldValue, AxisOrientation newValue)
Parameters
Type Name Description
AxisOrientation oldValue

The old value.

AxisOrientation newValue

The new value.

Overrides
Axis.OnOrientationPropertyChanged(AxisOrientation, AxisOrientation)
| Improve this Doc View Source

OnSeriesHostPropertyChanged(ISeriesHost, ISeriesHost)

This method is run when the series host property is changed.

Declaration
protected virtual void OnSeriesHostPropertyChanged(ISeriesHost oldValue, ISeriesHost newValue)
Parameters
Type Name Description
ISeriesHost oldValue

The old series host.

ISeriesHost newValue

The new series host.

| Improve this Doc View Source

OnShowGridLinesPropertyChanged(Boolean, Boolean)

ShowGridLinesProperty property changed handler.

Declaration
protected virtual void OnShowGridLinesPropertyChanged(bool oldValue, bool newValue)
Parameters
Type Name Description
System.Boolean oldValue

Old value.

System.Boolean newValue

New value.

| Improve this Doc View Source

OnTitlePropertyChanged(Object, Object)

TitleProperty property changed handler.

Declaration
protected virtual void OnTitlePropertyChanged(object oldValue, object newValue)
Parameters
Type Name Description
System.Object oldValue

Old value.

System.Object newValue

New value.

| Improve this Doc View Source

PrepareAxisLabel(Control, Object)

Prepares an axis label to be plotted.

Declaration
protected virtual void PrepareAxisLabel(Control label, object dataContext)
Parameters
Type Name Description
Control label

The axis label to prepare.

System.Object dataContext

The data context to use for the axis label.

| Improve this Doc View Source

Render(Size)

Renders the axis labels, tick marks, and other visual elements.

Declaration
protected abstract void Render(Size availableSize)
Parameters
Type Name Description
Size availableSize

The available size.

Implements

IAxis
IRequireSeriesHost

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source