aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-19 22:44:48 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-09-01 12:44:38 +0200
commitbefffb69eaebf2e607d88cd3ffc956a708d5734e (patch)
tree5b28b58db0171f026e1ea3681fb86b005b4f8c81 /Templates
parent9c3fd3b6b218de51177bef7d481e411e365b6ef3 (diff)
Menu and MenuItem classes, templates, styles and tests
modifié : Crow.csproj modifié : Default.style modifié : Style.cs nouveau fichier : Templates/Menu.template nouveau fichier : Templates/MenuItem.template modifié : Tests/Interfaces/TemplatedGroup/0.crow nouveau fichier : Tests/Interfaces/TemplatedGroup/1.crow nouveau fichier : Tests/Interfaces/TemplatedGroup/2.crow modifié : Tests/Tests.csproj nouveau fichier : src/GraphicObjects/Menu.cs nouveau fichier : src/GraphicObjects/MenuItem.cs modifié : src/GraphicObjects/TemplatedGroup.cs
Diffstat (limited to 'Templates')
-rw-r--r--Templates/Menu.template3
-rw-r--r--Templates/MenuItem.template17
2 files changed, 20 insertions, 0 deletions
diff --git a/Templates/Menu.template b/Templates/Menu.template
new file mode 100644
index 00000000..facc1892
--- /dev/null
+++ b/Templates/Menu.template
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<HorizontalStack Name="ItemsContainer" Margin="2" Background="{./Background}"
+ Width="{./WidthPolicy}" Height="{./HeightPolicy}"/>
diff --git a/Templates/MenuItem.template b/Templates/MenuItem.template
new file mode 100644
index 00000000..86b05be6
--- /dev/null
+++ b/Templates/MenuItem.template
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<Popper Caption="{./Caption}" Background="{./Background}" PopDirection="{./Orientation}"
+ Foreground = "{./Foreground}"
+ Unpop = "{Foreground=LightGray;Background=Transparent}">
+ <Template>
+ <Label Text="{./Caption}"
+ MinimumSize = "120,0"
+ Margin="3" TextAlignment="Left"
+ Height="{./HeightPolicy}" Width="{./WidthPolicy}"
+ Font="{./Font}"
+ Background="{./Background}"
+ Foreground="{./Foreground}"/>
+ </Template>
+ <Border Foreground="LightGray" Fit="true">
+ <VerticalStack Name="ItemsContainer" Margin="2" Fit="true" Background="Onyx"/>
+ </Border>
+</Popper>