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.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Gauges, DevExpress.Wpf.Gauges
Declaration
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.
<dxga:ArcScaleNeedle IsInteractive="True">
Related GitHub Examples
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.