blob: 4b5e66f0dc2137b03345709530c4b498d092bb6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<NumericControl Value="50" Height="Fit" Width="200" Background="DarkGrey">
<Template>
<Border Style="ControlBorder" Background="{./Background}" CornerRadius="{./CornerRadius}" Margin="1">
<VerticalStack Spacing="0">
<HorizontalStack Spacing="5">
<Label Text="{./Caption}" Style="ControlCaption" Margin="3"/>
<TextBox Style="ControlEditableText" Foreground="{./Foreground}" Font="{./Font}" Width="Stretched" Margin="3"
Text="{²./Value}" TextAlignment="Right" Background="Jet" />
<VerticalStack Width="16" Height="Stretched" Spacing="1" Margin="2">
<Shape KeepProportions="false" Margin="0" Style="ArrowBut" Height="50%" MouseDown="./onUp" Size="10,10" Path="M 4.5,0.5 L 9.5,9.5 L 0.5,9.5 Z F"/>
<Shape KeepProportions="false" Margin="0" Style="ArrowBut" Height="50%" MouseDown="./onDown" Size="10,10" Path="M 0.5,0.5 L 9.5,0.5 L 4.5,9.5 Z F"/>
</VerticalStack>
</HorizontalStack>
<Slider Background="Onyx" Foreground="Grey" Height="8" Value="{²./Value}"
MouseEnter="{Foreground=${ControlHighlight}}"
MouseLeave="{Foreground=Grey}" />
</VerticalStack>
</Border>
</Template>
</NumericControl>
|