wpf-devexpress-dot-xpf-dot-charts-dot-axisx2d.md
Represents the X-axis of a XYDiagram2D class.
Namespace : DevExpress.Xpf.Charts
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public class AxisX2D :
Axis2D
Public Class AxisX2D
Inherits Axis2D
The following members return AxisX2D objects:
An instance of the AxisX2D class can be accessed via the XYDiagram2D.AxisX property. To learn more on the functionality provided by the AxisX2D class, see the descriptions of its Axis and Axis2D base classes.
The following example demonstrates how to change the AxisRange.SideMarginsEnabled property value.
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D Range="SideMarginsEnabled=False" />
</dxc:XYDiagram2D.AxisX>
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D >
<dxc:AxisX2D.Range>
<dxc:AxisRange SideMarginsEnabled="True" />
</dxc:AxisX2D.Range>
</dxc:AxisX2D>
</dxc:XYDiagram2D.AxisX>
The following code snippets (auto-collected from DevExpress Examples) contain references to the AxisX2D class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-bind-a-range-control-to-a-chart-control/CS/GoldPrices/MainWindow.xaml#L40
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D x:Name="axisX">
<dxc:AxisX2D.DateTimeScaleOptions>
wpf-charts-custom-draw-crosshair-cursor/CS/CrosshairCustomDraw/MainWindow.xaml#L18
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D>
<dxc:AxisX2D.CrosshairAxisLabelOptions>
wpf-charts-create-real-time-chart/CS/RealtimeChartMVVM/MainWindow.xaml#L31
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D>
<dxc:AxisX2D.DateTimeScaleOptions>
Show 14 items
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ChartElementBase ChartElement AxisBase Axis Axis2D AxisX2D SecondaryAxisX2D
See Also