aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/ui/MenuItem.template
blob: e959b7d2955af39621ed81a2a28aecc43737fe33 (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
<?xml version="1.0"?>
<Popper Font="{./Font}" Caption="{./Caption}"  Background="{./Background}" PopDirection="{./PopDirection}"
	Foreground = "{./Foreground}" CanPop="{./HasChildren}" MouseClick="./onMI_Click"
	IsPopped="{²./IsOpened}" PopWidth="{./PopWidth}" PopHeight="{./PopHeight}" IsEnabled="{./IsEnabled}">
	<Template>
		<CheckBox IsChecked="{²./IsPopped}" Caption="{./Caption}" Background="{./Background}" Foreground="{./Foreground}">
			<Template>
				<Border Name="border1"
						MinimumSize = "40,0"
						Foreground="Transparent"
						Background="{./Background}">
						<HorizontalStack HorizontalAlignment="Left" Margin="1">
							<Image Width="10" Height="10" Picture="{../../../../../Icon}"/>
							<Label Text="{./Caption}"
								Foreground="{./Foreground}"
								Font="{./Font}"	/>
						</HorizontalStack>
				</Border>
			</Template>
		</CheckBox>
	</Template>
	<Border Foreground="DimGrey" Width="{../PopWidth}" Height="{../PopHeight}" Background="Jet">
		<VerticalStack Name="ItemsContainer"/>
	</Border>
</Popper>