Gets the state the indicator is currently in. This is a dependency property.
Namespace: MindFusion.Gauges.Wpf
Assembly: MindFusion.Gauges.Wpf
SyntaxC#
Copy Code
|
|---|
public CustomInterval CurrentState { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property CurrentState As CustomInterval |
An instance of the CustomInterval class.
RemarksThe value of this property is updated automatically to reflect the current state of the indicator. The intention is to bind to this property from within the indicator's control template. Therefore, when the current state changed, the appearance of the indicator will change accordingly.
ExampleFor example, the following XAML code illustrates the default template of the Indicator class and how it binds to the properties of the CurrentState:
XAML
Copy Code
|
|---|
<ControlTemplate TargetType="{x:Type local:Indicator}"> |
See Also