diff options
Diffstat (limited to 'Samples/DebugLogViewer/ui/MenuButton.template')
| -rw-r--r-- | Samples/DebugLogViewer/ui/MenuButton.template | 11 |
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> |