aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/ComboBox.template
blob: aed500aba15220c710b1faa7be4ff5e12c0cc766 (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
<?xml version="1.0"?>
<Popper Caption="{./SelectedItem}" Name="popper" PopDirection="Bottom" Foreground="{./Foreground}" Background="{./Background}">
	<Template>
		<CheckBox Caption="{./Caption}" IsChecked="{²./IsPopped}" Foreground="{./Foreground}" Background="{./Background}">
			<Template>
				<Border CornerRadius="0" Foreground="LightGray">
					<HorizontalStack Margin="0" Spacing="1">
						<TextBox MinimumSize="80,10" Margin="1" Foreground="Black" Background="White"
							Text="{./Caption}"/>
						<Button Width="14" Height="14" Focusable="false"
							Template="#Crow.Templates.ArrowBut.template">
							<Image Margin="0"  Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
						</Button>
					</HorizontalStack>
				</Border>
			</Template>
		</CheckBox>
	</Template>
	<Border Background="DimGray" BorderWidth="1" Margin="1"
		MinimumSize="{../../MinimumPopupSize}" Fit="true">
		<Scroller Name="scroller1" Margin="2" VerticalScrolling="true"
			MaximumSize="0,200"
			HorizontalAlignment="Left">
			<VerticalStack
				Height="Fit" Name="ItemsContainer" Margin="0"
				HorizontalAlignment="Left"
				VerticalAlignment="Top"/>
		</Scroller>
	</Border>
</Popper>