aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/colorPicker.tmp
blob: e87399d6646178c9691cdca367bdccee812af365 (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
<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" />
		<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>