aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/MenuItem.template
blob: b814e2c6b3178bc607c07d8ceb46849531edbc8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<Popper Caption="{./Caption}"  Background="{./Background}" PopDirection="{./PopDirection}"
	Foreground = "{./Foreground}" CanPop="{./HasChildren}" MouseClick="./onMI_Click"
	IsPopped="{²./IsOpened}">
	<Template>
		<Border Name="border1"
				MouseEnter="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}"
				MouseLeave="{Foreground=Transparent}"
				MouseDown="{Foreground=vgradient|0:Black|0.05:Gray|0.85:Gray|1:White}"
				MouseUp="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}"
				MinimumSize = "60,0"
				Foreground="Transparent"
				Background="{./Background}">
			<Label Text="{./Caption}"
				Foreground="{./Foreground}"
				Margin="1" HorizontalAlignment="Left"
				Font="{./Font}"	/>
		</Border>
	</Template>
	<Border Foreground="DimGray" Fit="true">
		<VerticalStack Name="ItemsContainer" Margin="2" Fit="true" Background="Onyx"/>
	</Border>
</Popper>