aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/ScrollingListBox.template
blob: 56b08c037b6d163b04b9076a33d7c7896d866d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0"?>
<Border BorderWidth="1" Background="{./Background}">
	<HorizontalStack Margin="1">
		<Scroller Name="scroller1" 
				Margin="2" VerticalScrolling="true" ScrollY="{../scrollbar1.Value}">
			<VerticalStack Height="Fit" MinimumSize="10,10"
				Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
		</Scroller>
		<ScrollBar Name="scrollbar1" Value="{²../scroller1.ScrollY}"
			LargeIncrement="{../scroller1.PageHeight}" SmallIncrement="30" CursorSize="{../scroller1.ChildHeightRatio}"
			Maximum="{../scroller1.MaximumScroll}" Orientation="Vertical" 
			Width="14" />
	</HorizontalStack>
</Border>