aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/templates/testitems.crow
blob: f09b9c626efc7e35380bf7eefecd0a2133a3cbee (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 Name="Names" Height="Stretched" Background="Onyx">
	<Template>
		<ListBox Height="Fit" Width="Stretched" Data="{./AvailableColors}" >		
			<ItemTemplate>
				<ListItem Margin="0" Height="16" Width="Fit"
							Selected="{Background=Black}"
							Unselected="{Background=Transparent}">
					<Label Height="Fit" Width="Fit" Text="{}" Background="{}" Margin="5"/>
				</ListItem>
			</ItemTemplate>
			<Template>
				<VerticalStack Width="Stretched" >
					<Scroller Name="scroller"   >
						<HorizontalStack Name="ItemsContainer"  Width="Fit" HorizontalAlignment="Left"/>
					</Scroller>
					<ScrollBar Style="HScrollBar" Name="scrollbar1" Value="{²../scroller.ScrollX}"
						LargeIncrement="{../scroller.PageWidth}" SmallIncrement="30" CursorRatio="{../scroller.ChildWidthRatio}"
						Maximum="{../scroller.MaxScrollX}" Height="12" />
				</VerticalStack>
			</Template>
		</ListBox>
	</Template>
</ColorPicker>