-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
31 lines (31 loc) · 1.69 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
<Window x:Class="LinearGauge_CustomElement.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="450" Width="325">
<Grid>
<dxga:LinearGaugeControl Name="linearGaugeControl1" Width="170" >
<dxga:LinearGaugeControl.Scales>
<dxga:LinearScale >
<dxga:LinearScale.CustomElements>
<dxga:ScaleCustomElement VerticalAlignment="Top" HorizontalAlignment="Right">
<Button Name="button1" Content="Up" Width="40" Click="button1_Click" />
</dxga:ScaleCustomElement>
<dxga:ScaleCustomElement VerticalAlignment="Bottom" HorizontalAlignment="Right">
<Button Name="button2" Content="Down" Width="40" Click="button2_Click" />
</dxga:ScaleCustomElement>
</dxga:LinearScale.CustomElements>
<dxga:LinearScale.LevelBars >
<dxga:LinearScaleLevelBar x:Name="bar" Value="50" />
</dxga:LinearScale.LevelBars >
<dxga:LinearScale.Layers>
<dxga:LinearScaleLayer />
</dxga:LinearScale.Layers>
</dxga:LinearScale>
</dxga:LinearGaugeControl.Scales>
<dxga:LinearGaugeControl.Model>
<dxga:LinearCleanWhiteModel />
</dxga:LinearGaugeControl.Model>
</dxga:LinearGaugeControl>
</Grid>
</Window>