Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 2.1 KB

File metadata and controls

30 lines (19 loc) · 2.1 KB

WPF Gauges - Create a Knob-like Gauge

This example customizes the CircularGaugeControl. As a result, the control looks and behaves like a 'knob' element of a real-life dashboard.

Knob-like Gauge

Implementation Details

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.

Files to Review

Documentation