Skip to main content

CartesianChart.AllowAxisXZoomScroll Property

Indicates whether a user can zoom and scroll a diagram along the X-axis.

Namespace: DevExpress.WinUI.Charts

Assembly: DevExpress.WinUI.Charts.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(false, Handler = "AllowAxisXZoomScrollPropertyChanged")]
public bool AllowAxisXZoomScroll { get; set; }

Property Value

Type Description
Boolean

true if zoom and scroll operations are allowed; otherwise, false.

Remarks

The following example sets the CartesianChart.AllowAxisXZoomScroll and CartesianChart.AllowAxisYZoomScroll properties to true to allow users to zoom and scroll a chart along argument and value axes:

In markup:

<Charts:CartesianChart x:Name="chart" AllowAxisYZoomScroll="True" AllowAxisXZoomScroll="True" ...>
    <!--Other settings-->
</Charts:PieChart>    

In code:

chart.AllowAxisXZoomScroll = true;
chart.AllowAxisYZoomScroll = true;
See Also