-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
53 lines (53 loc) · 2.65 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxga="http://schemas.devexpress.com/winfx/2008/xaml/gauges"
Title="MainWindow" Height="350" Width="525" >
<Grid>
<dxga:CircularGaugeControl>
<dxga:CircularGaugeControl.Scales>
<dxga:ArcScale EndValue="200">
<dxga:ArcScale.Needles>
<dxga:ArcScaleNeedle x:Name="needle" Value="40" IsInteractive="True">
<dxga:ArcScaleNeedle.Animation>
<dxga:IndicatorAnimation />
</dxga:ArcScaleNeedle.Animation>
</dxga:ArcScaleNeedle>
</dxga:ArcScale.Needles>
<dxga:ArcScale.Ranges>
<dxga:ArcScaleRange EndValue="100" StartValue="0" />
<dxga:ArcScaleRange EndValue="140" StartValue="100" />
<dxga:ArcScaleRange EndValue="200" StartValue="140" />
</dxga:ArcScale.Ranges>
<dxga:ArcScale.Layers>
<dxga:ArcScaleLayer/>
</dxga:ArcScale.Layers>
</dxga:ArcScale>
</dxga:CircularGaugeControl.Scales>
<dxga:CircularGaugeControl.Model>
<dxga:CircularCleanWhiteModel />
</dxga:CircularGaugeControl.Model>
</dxga:CircularGaugeControl>
<dxga:StateIndicatorControl dxga:AnalogGaugeControl.ValueIndicator="{Binding ElementName=needle}"
HorizontalAlignment="Left" Margin="228,229,0,0"
VerticalAlignment="Top" Height="46" >
<dxga:StateIndicatorControl.AdditionalStates>
<dxga:State>
<dxga:State.Presentation>
<dxga:LampGreenStatePresentation />
</dxga:State.Presentation>
</dxga:State>
<dxga:State>
<dxga:State.Presentation>
<dxga:LampYellowStatePresentation />
</dxga:State.Presentation>
</dxga:State>
<dxga:State>
<dxga:State.Presentation>
<dxga:LampRedStatePresentation />
</dxga:State.Presentation>
</dxga:State>
</dxga:StateIndicatorControl.AdditionalStates>
</dxga:StateIndicatorControl>
</Grid>
</Window>