aboutsummaryrefslogtreecommitdiffstatsci
path: root/Crow.ControlsLib/Templates/Spinner.template
blob: 4d3569bf0b0ce80e975493b3f294ff239d092932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0"?>
<HorizontalStack MinimumSize="40,10" Name="hstack" Margin="0" Spacing="0">
	<Border BorderWidth="1" Width="80%"  Background="White" 
		Foreground="{./Foreground}" Margin="0">
		<TextBox Foreground="{./Foreground}" Font="{./Font}" Width="Stretched"
			Text="{²./Value}" TextAlignment="Right" Margin="0"/>
	</Border>
	<VerticalStack MinimumSize="8,10" Width="20%" Height="Stretched" Spacing="0" Margin="0" Background="Red">
		<Button MouseRepeat="true" Width="Stretched" Height="50%" Margin="0" MouseClick="./onUp"
			Template="#Crow.Templates.ArrowButTemplate.crow">
			<Image Path="#Crow.Images.Icons.updown.svg" SvgSub="up" Margin="0"/>
		</Button>				
		<Button MouseRepeat="true" Width="Stretched" Height="50%" Margin="0" MouseClick="./onDown" 
			Template="#Crow.Templates.ArrowButTemplate.crow">
			<Image Path="#Crow.Images.Icons.updown.svg" SvgSub="down" Margin="0"/>
		</Button>
	</VerticalStack>
</HorizontalStack>