aboutsummaryrefslogtreecommitdiffstatsci
path: root/Crow.ControlsLib/Templates/ScrollBar.template
blob: 70dce93ef9ed12c580f42e8b96106b8aab8e8090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="LightGray">
	<GenericStack Orientation="{./Orientation}" Spacing="0">
		<Button MouseRepeat="true" Width="12" Height="12" MouseClick="./onScrollBack"
			Template="#Crow.Templates.ArrowButTemplate.crow">
			<Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="up"/>
		</Button>
		<Slider Name="Slider"
			Orientation="{./Orientation}"
			Value="{²./Value}"
			Maximum="{./Maximum}"
			Height="{./HeightPolicy}" Width="{./WidthPolicy}"
			LargeIncrement="{./LargeIncrement}"
			SmallIncrement="{./SmallIncrement}"
			Background="hgradient|0:DimGray|0.1:Gray|0.95:Gray|1:White"/>
		<Button MouseRepeat="true" Width="12" Height="12" MouseClick="./onScrollForth"
			Template="#Crow.Templates.ArrowButTemplate.crow">
			<Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
		</Button>
	</GenericStack>
</Border>