aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Experimental/colorPicktest.crow
blob: 1db2be6bf0fd246f20591598a207f90fb15c8a74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<ColorPicker Width="Fit" Height="Stretched" Background="Onyx">
	<Template>
		<ListBox Data="{./AvailableColors}" Margin="15">
			<Template>
				<Scroller>
					<VerticalStack Name="ItemsContainer" Height="Fit" VerticalAlignment="Top" Background="DarkGrey" Margin="5" />
				</Scroller>
			</Template>
			<ItemTemplate>
				<ListItem Margin="1" Width="Stretched" 
					Selected="{Background=RoyalBlue}"
					Unselected="{Background=Transparent}">
					<HorizontalStack Height="Fit" >
						<Widget Width="20" Height="14" Background="{}" CornerRadius="3"/>
						<Label Text="{}" Width="Stretched" />
					</HorizontalStack>
				</ListItem>
			</ItemTemplate>
		</ListBox>
	</Template>
</ColorPicker>