aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/Experimental/multiColorPick2.crow
blob: 6657832417b661898397ccda2e7b633f352d3d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<VerticalStack>
	<ColorPicker Name="cp"  >
		<Template>
			<Popper Margin="0" Caption="{./CurrentColor}" Background="{./Background}" >
				<Template>
					<HorizontalStack Margin="3"  Spacing="3" Background="{./Background}">
						<Border Width="18" Height="12" CornerRadius="3"
							Background="{../../../CurrentColor}">
						</Border>
						<Label Width="Stretched" Text="{./Caption}" />
					</HorizontalStack>
				</Template>/>
				<TabView  MinimumSize="{../MinimumPopupSize}" Width="200" Height="200"  >
					<ColorPicker Name="HSV" CurrentColor="{²../../../CurrentColor}" Background="Onyx" BubbleEvents="None" />
					<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>
				</TabView>
			</Popper>
		</Template>
	</ColorPicker>
	<Border CornerRadius="5" Width="100" Height="80" Background="{../cp.CurrentColor}">
		<Label Text="{../../cp.CurrentColor}"/>
	</Border>
</VerticalStack>