aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Experimental/multiColorPick3.crow
blob: 288e641b77ab6e225822c236016b48b9466f5657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<VerticalStack>
	<Label Text="{../cp.CurrentColor}"/>
	<ColorPicker IsVisible="false" Name="Names" CurrentColor="{²../../../CurrentColor}" Height="Stretched" Background="Onyx">
		<Template>
			<ListBox Width="Stretched" Data="{./AvailableColors}" SelectedItemChanged="./onSelectedItemChanged">
				<Template>
					<Scroller Name="scroller1" Margin="5" ClipToClientRect="true" Background="Onyx">
						<Wrapper Name="ItemsContainer" Height="Fit" VerticalAlignment="Top"/>
					</Scroller>
				</Template>
				<ItemTemplate>
					<Border Width="16" Height="16" Background="{}" Foreground="Transparent" Tooltip="{}"
											MouseEnter="{Foreground=Black}"
											MouseLeave="{Foreground=Transparent}"/>	
				</ItemTemplate>
			</ListBox>
		</Template>
	</ColorPicker>
</VerticalStack>