aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogViewer/ui/MenuItem.itmp
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/DebugLogViewer/ui/MenuItem.itmp')
-rw-r--r--Samples/DebugLogViewer/ui/MenuItem.itmp16
1 files changed, 16 insertions, 0 deletions
diff --git a/Samples/DebugLogViewer/ui/MenuItem.itmp b/Samples/DebugLogViewer/ui/MenuItem.itmp
new file mode 100644
index 00000000..8dfb3301
--- /dev/null
+++ b/Samples/DebugLogViewer/ui/MenuItem.itmp
@@ -0,0 +1,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>