This example customizes the CircularGaugeControl. As a result, the control looks and behaves like a 'knob' element of a real-life dashboard.
The KnobResourceDictionary.xaml file contains the following custom templates:
- The OscilloscopeNeedleTemplate changes the arc scale's needle appearance.
- The OscilloscopeScaleLayerTemplate changes the arc scale's layer appearance.
Set the needle's IsInteractive property to true
to allow users to change the gauge's value. The gauge stores its value in the needle's Value
property.