Skip to main content

ValueIndicatorBase.IsInteractive Property

Gets or sets a value that indicates whether interactivity is enabled for the current value indicator.

Namespace: DevExpress.Xpf.Gauges

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

NuGet Package: DevExpress.Wpf.Gauges

Declaration

public bool IsInteractive { get; set; }

Property Value

Type Description
Boolean

true to enable interactivity; otherwise, false.

Remarks

After the IsInteractive property is set to true, it becomes possible to change an indicator’s value property via a mouse click.

Snap Indicator Values to Tickmarks

When users change the indicator value, they can set any value. You can prohibit users from setting values bettween tickmarks. Set the ValueIndicatorBase.SnapMode property to MajorTickmarks / MinorTickmarks to snap the indicator value to major/minor tickmarks.

Example

This example demonstrates how to enable the capability for end-users to change a needle’s value via a mouse click. To do this, set the ValueIndicatorBase.IsInteractive property to True as shown below.

Note that although in this example, only the ArcScaleNeedle class is used, the IsInteractive property is available in all ValueIndicatorBase class descendants, and therefore it is available in all value indicators.

View Example

<dxga:ArcScaleNeedle IsInteractive="True">

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsInteractive property.

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