MindFusion.Wpf Pack Programmer's Guide
Indicator Class
Remarks See Also
 





Represents a gauge element, which changes its appearance based on its current state.

Namespace: MindFusion.Gauges.Wpf
Assembly: MindFusion.Gauges.Wpf

 Syntax

C#  Copy Code

public class Indicator : Control

Visual Basic  Copy Code

Public Class Indicator
    Inherits Control

 Remarks

The indicator is a gauge element, which changes its appearance based on its Value property and its defined states. The states of the indicator are specified as CustomInterval objects and are located in the States collection. When the value of the indicator falls within one of its defined states, this state becomes active and its Fill, Stroke and StrokeThickness properties are applied to the indicator automatically. In addition, the attached property ActiveColor is applied as a glow color of the indicator. If the value of the indicator does not fall in any of the defined states, then the DefaultState becomes active.

A common scenario is to bind the Value property of the indicator to the Value of a Pointer object, thus when the value of the pointer is modified, the state of the indicator changes to reflect this.

 Example

Indicators can be embedded within a scale. The following XAML code illustrates a LinearGauge with an indicator embedded in it. The indicator defines a single state, which paints the indicator in a green color.

XAML  Copy Code

<gauges:LinearScale Orientation="Vertical">
  <gauges:Indicator VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0" Width="20" Height="20">
    <gauges:Indicator.States>
      <gauges:CustomInterval MinValue="0" MaxValue="25" Fill="Green" gauges:Indicator.ActiveColor="Green" />
    </gauges:Indicator.States>
  </gauges:Indicator>
</gauges:LinearScale>

 Inheritance Hierarchy

System.Object
    System.Windows.Threading.DispatcherObject
        System.Windows.DependencyObject
            System.Windows.Media.Visual
                System.Windows.UIElement
                    System.Windows.FrameworkElement
                        System.Windows.Controls.Control
                            MindFusion.Gauges.Wpf.Indicator

 See Also

Indicator Members
MindFusion.Gauges.Wpf Namespace