aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces/TemplatedGroup/11.crow
blob: 6e58800128a14840bc754e96551890f8b503c645 (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
<?xml version="1.0"?>
<Menu>
	<MenuItem Caption="File" >
		<MenuItem Caption="New">
			<Template>
				<Popper Font="{./Font}" Caption="{./Caption}"  Background="{./Background}" PopDirection="{./PopDirection}"
					Foreground = "{./Foreground}" CanPop="{./HasChildren}"
					IsPopped="{²./IsOpened}" PopWidth="{./PopWidth}" PopHeight="{./PopHeight}">
					<Template>
						<CheckBox IsChecked="{²./IsPopped}" Caption="{./Caption}" Background="{./Background}" Foreground="{./Foreground}">
							<Template>		
								<Label Text="{./Caption}"
									Foreground="{./Foreground}"
									Margin="2" HorizontalAlignment="Left"
									Font="{./Font}"	/>
							</Template>		
						</CheckBox>
					</Template>
					<Border Foreground="DimGrey" Height="{../PopHeight}" Background="FireBrick" Margin="3">
						<VerticalStack Name="ItemsContainer"/>
					</Border>
				</Popper>
			</Template>
		</MenuItem>
	</MenuItem>	
</Menu>