aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Divers/fitListWithStretchedItems.crow
blob: 736935355c66c5ef49c171ad3a146d4a6c6aa52f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0"?>
<ListBox Data="{TestList}" Width="Fit" Focusable="true" Foreground="Red" >
	<Template>
		<Scroller Name="ItemsScroller" Height="Stretched" Background="Onyx" Margin="10">
			<VerticalStack Name="ItemsContainer" Orientation="Horizontal" VerticalAlignment="Top" Height="Fit" Background="Grey" Margin="20"/>
		</Scroller>
	</Template>
	<ItemTemplate>
		<!--<Label Text="{}" TextAlignment="Center" Font="mono, 9" Foreground="Black" Margin="10" Width="Stretched" Background="{}"/>-->
		<ListItem Width="Stretched" Margin="1" CornerRadius="5"
			Selected="{Background=Yellow}"
			Unselected="{Background=Transparent}">
			<Label Text="{}" TextAlignment="Center" Font="mono, 9" Foreground="{Foreground}" Margin="6" Background="{}" Width="Stretched" />
		</ListItem>
	</ItemTemplate>

</ListBox>