diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-07 07:43:48 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-07 07:43:48 +0100 |
| commit | 158bc472eff0771479d48e5bd74a8141d62ab60a (patch) | |
| tree | 492f2d255de49b5c04ebba237ecb40b265bd6534 /Crow.ControlsLib/Templates/MenuItem.template | |
| parent | a330b907a9c9252c480ea352606d961bdc7c3ecb (diff) | |
:book: , renames, move some controls to other project file
Diffstat (limited to 'Crow.ControlsLib/Templates/MenuItem.template')
| -rw-r--r-- | Crow.ControlsLib/Templates/MenuItem.template | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Crow.ControlsLib/Templates/MenuItem.template b/Crow.ControlsLib/Templates/MenuItem.template new file mode 100644 index 00000000..0f93b20c --- /dev/null +++ b/Crow.ControlsLib/Templates/MenuItem.template @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<Popper Font="{./Font}" Caption="{./Caption}" Background="{./Background}" PopDirection="{./PopDirection}" + Foreground = "{./Foreground}" CanPop="{./HasChildren}" MouseClick="./onMI_Click" + IsPopped="{²./IsOpened}" PopWidth="{./PopWidth}" PopHeight="{./PopHeight}"> + <Template> + <Border Name="border1" + MouseEnter="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}" + MouseLeave="{Foreground=Transparent}" + MouseDown="{Foreground=vgradient|0:Black|0.05:Gray|0.85:Gray|1:White}" + MouseUp="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}" + MinimumSize = "60,0" + Foreground="Transparent" + Background="{./Background}"> + <Label Text="{./Caption}" + Foreground="{./Foreground}" + Margin="1" HorizontalAlignment="Left" + Font="{./Font}" /> + </Border> + </Template> + <Border Foreground="DimGray" Width="{../PopWidth}" Height="{../PopHeight}" Background="Onyx"> + <VerticalStack Name="ItemsContainer"/> + </Border> +</Popper> |