Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

State Class

A state of a state indicator control.

Namespace: DevExpress.Xpf.Gauges

Assembly: DevExpress.Xpf.Gauges.v24.2.dll

NuGet Package: DevExpress.Wpf.Gauges

#Declaration

public class State :
    GaugeDependencyObject

The following members return State objects:

#Remarks

A state is used to show a current state image according to a value that is set for the StateIndicatorControl.StateIndex property. An instance of a state is represented by the State object returned by the StateIndicatorControl.State property.

It is also possible to provide additional states of a state indicator (via the StateIndicatorControl.AdditionalStates property); as well as specify the state that is shown when the state index is out of range (via the StateIndicatorControl.DefaultState property).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the State 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.

See Also