aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogViewer/ui/MenuItem.itmp
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2025-07-16 20:08:03 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2025-07-16 20:08:03 +0200
commit149205e8ebe5c4ab1ca52ca700ff754aabdf14aa (patch)
treee0d567ae9a304ec915e49a25e42af1803e3d83ed /Samples/DebugLogViewer/ui/MenuItem.itmp
parente96fecb4bb512ee47e9df0224e779b24d686bc30 (diff)
DebugLogViewer, DockTests
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>