Skip to content

DevExpress-Examples/wpf-gauges-create-a-knob-like-gauge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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