Back to Devexpress

AxisRange.SideMarginsEnabled Property

wpf-devexpress-dot-xpf-dot-charts-dot-axisrange-8e11eb43.md

latest2.4 KB
Original Source

AxisRange.SideMarginsEnabled Property

Specifies whether a space should be left between the outermost series point and the diagram’s edge.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public bool SideMarginsEnabled { get; set; }
vb
Public Property SideMarginsEnabled As Boolean

Property Value

TypeDescription
Boolean

true if the axis range is automatically widened; otherwise, false.

|

Remarks

Use the SideMarginsEnabled property for an axis to automatically extend its range, so that indents are preserved on the both ends of the axis.

Note

When using the Numerical scale type, it is possible to change side margins only for automatically calculated axis ranges.

The following table illustrates how the SideMarginsEnabled property works.

SideMarginsEnabled = falseSideMarginsEnabled = true

Example

The following example demonstrates how to change the AxisRange.SideMarginsEnabled property value.

View Example

xaml
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D Range="SideMarginsEnabled=False" />
</dxc:XYDiagram2D.AxisX>
xaml
<dxc:XYDiagram2D.AxisX>
     <dxc:AxisX2D >
         <dxc:AxisX2D.Range>
             <dxc:AxisRange SideMarginsEnabled="True" />
         </dxc:AxisX2D.Range>
     </dxc:AxisX2D>
 </dxc:XYDiagram2D.AxisX>

See Also

AxisRange Class

AxisRange Members

DevExpress.Xpf.Charts Namespace