aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogViewer/ui/MenuItem.itmp
blob: 8dfb33019767da57fd20804e8c60d2b18b20fc90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0"?>
<ItemTemplate DataType="Crow.Command" Path="#ui.MenuButton.template"/>
<ItemTemplate DataType="Crow.CommandGroup" Data="Commands">
	<Popper PopDirection="Right" Caption="{Caption}" Width="Stretched" IsPopped="{²./IsOpened}"
			MouseEnter="{Background=${ControlHighlight}}"
			MouseLeave="{Background=Transparent}">
		<Template>
			<HorizontalStack Background="{./Background}" Width="Stretched" Height="Fit" Margin="3" Spacing="6">
				<Image Style="MenuIcon" Picture="{Icon}"/>
				<Label Text="{./Caption}" Height="Fit"/>
				<Label Text="..." Width="Fit"/>
			</HorizontalStack>
		</Template>
		<VerticalStack Margin="0" Name="ItemsContainer" Fit="true" Background="${MenuBackground}"/>
	</Popper>
</ItemTemplate>