aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogViewer/ui/MenuButton.template
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/MenuButton.template
parente96fecb4bb512ee47e9df0224e779b24d686bc30 (diff)
DebugLogViewer, DockTests
Diffstat (limited to 'Samples/DebugLogViewer/ui/MenuButton.template')
-rw-r--r--Samples/DebugLogViewer/ui/MenuButton.template11
1 files changed, 11 insertions, 0 deletions
diff --git a/Samples/DebugLogViewer/ui/MenuButton.template b/Samples/DebugLogViewer/ui/MenuButton.template
new file mode 100644
index 00000000..3a3e2c61
--- /dev/null
+++ b/Samples/DebugLogViewer/ui/MenuButton.template
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<Button Command="{}" Width="Stretched" BubbleEvents="All">
+ <Template>
+ <HorizontalStack Background="{./Background}" Width="Stretched" Height="Stretched" Margin="3" Spacing="6"
+ MouseEnter="{Background=${ControlHighlight}}"
+ MouseLeave="{Background=Transparent}">
+ <Image Style="MenuIcon" Picture="{./Icon}" />
+ <Label Text="{./Caption}" Width="Stretched" Height="Fit" Margin="1"/>
+ </HorizontalStack>
+ </Template>
+</Button>