Back to Devexpress

ChartControl.AxisScaleChanged Event

wpf-devexpress-dot-xpf-dot-charts-dot-chartcontrol-9cf17c36.md

latest5.2 KB
Original Source

ChartControl.AxisScaleChanged Event

Occurs when the scale mode, aggregate function, auto grid, grid offset, or grid spacing of the axis scale has been changed.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public event AxisScaleChangedEventHandler AxisScaleChanged
vb
Public Event AxisScaleChanged As AxisScaleChangedEventHandler

Event Data

The AxisScaleChanged event's data class is AxisScaleChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
AggregateFunctionChangeReturns information about aggregate function changes.
AutoGridChangeReturns information about auto grid value changes.
AxisReturns the axis whose scale mode, measure unit, grid alignment or grid spacing has been changed.
GridOffsetChangeReturns information about grid offset changes.
GridSpacingChangeReturns information about grid spacing changes.
HandledGets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.
OriginalSourceGets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.
RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.
ScaleModeChangeReturns information about scale mode changes.
SourceGets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.

The event data class exposes the following methods:

MethodDescription
InvokeEventHandler(Delegate, Object)When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation. Inherited from RoutedEventArgs.
OnSetSource(Object)When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. Inherited from RoutedEventArgs.

Remarks

Note that the event args type depends on the current axis scale type. The following table shows dependencies between scale types and argument types.

Scale typeArgs type
NumericNumericScaleChangedEventArgs
Date-TimeDateTimeScaleChangedEventArgs

See Also

ChartControl Class

ChartControl Members

DevExpress.Xpf.Charts Namespace