aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogAnalyzer/ui/ComboBox.template
blob: 1b8e439c59a90836e7f49440ce0ab35863a2aff3 (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"?>
<HorizontalStack Spacing="5" Background="{./Background}">
	<Label Text="{./Caption}"/>
	<Popper Caption="{./SelectedItem}" Name="popper" PopDirection="Bottom" Foreground="{./Foreground}" Background="{./Background}">
		<Template>
			<CheckBox Caption="{./Caption}" IsChecked="{²./IsPopped}" Foreground="{./Foreground}" Background="{./Background}">
				<Template>
					<Border Style="ControlBorder" Background="{./Background}">
						<HorizontalStack Margin="0" Spacing="1">
							<TextBox Style="ControlEditableText" Text="{./Caption}"/>
							<Shape Style="ArrowBut" MouseDown="./onScrollForth" Width="10" Height="Stretched"
								Size="10,10" Path="M 0.5,0.5 L 9.5,0.5 L 4.5,9.5 Z F"/>
						</HorizontalStack>
					</Border>
				</Template>
			</CheckBox>
		</Template>
		<Border Background="Onyx" Foreground="DimGrey" BorderWidth="1" Margin="1" Height="Fit" Width="Fit"
			MinimumSize="{../../MinimumPopupSize}" >
			<Scroller Name="scroller1" Margin="1" 
				MaximumSize="0,200"
				HorizontalAlignment="Left">
				<VerticalStack
					Height="Fit" Name="ItemsContainer" Margin="0"
					HorizontalAlignment="Left"
					VerticalAlignment="Top"/>
			</Scroller>
		</Border>
	</Popper>
</HorizontalStack>