aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-17 18:30:01 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-17 18:30:01 +0200
commit41b76ea576cdece6c5a2f1feb936dfb4a2a9854a (patch)
tree42c16725f61d0cfb1fef4c1016f3c0a15f130d3f /Templates
parent3aba832ca7c6f9da0e9be8f5060013a2bbc6d345 (diff)
Combobox
Diffstat (limited to 'Templates')
-rwxr-xr-xTemplates/ComboListOverlay.goml6
-rwxr-xr-xTemplates/Combobox.goml10
-rwxr-xr-xTemplates/ComboboxOverlay.goml7
3 files changed, 17 insertions, 6 deletions
diff --git a/Templates/ComboListOverlay.goml b/Templates/ComboListOverlay.goml
deleted file mode 100755
index 65bac62b..00000000
--- a/Templates/ComboListOverlay.goml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0"?>
-<Border MaximumSize="0;100" Fit="True" Background="Gray">
- <Scroller Height="0" MaximumSize="0;100" Background="DimGray" Margin="0" VerticalScrolling="true">
- <VerticalStack Name="List" Margin="0" VerticalAlignment="Top"/>
- </Scroller>
-</Border> \ No newline at end of file
diff --git a/Templates/Combobox.goml b/Templates/Combobox.goml
new file mode 100755
index 00000000..21824049
--- /dev/null
+++ b/Templates/Combobox.goml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<Border CornerRadius="0" BorderColor="LightGray" Height="{TemplatedHeight}" Width="{TemplatedWidth}">
+ <HorizontalStack Margin="1" Spacing="1" Height="{TemplatedHeight}" Width="{TemplatedWidth}">
+ <Label Margin="1" Foreground="Black" Background="White" Text="{Text}"
+ Height="{TemplatedHeight}" Width="{TemplatedWidth}"/>
+ <Button Width="14" Height="14" >
+ <Image Margin="0" Path="#go.Images.Icons.updown.svg" SvgSub="down"/>
+ </Button>
+ </HorizontalStack>
+</Border> \ No newline at end of file
diff --git a/Templates/ComboboxOverlay.goml b/Templates/ComboboxOverlay.goml
new file mode 100755
index 00000000..349be301
--- /dev/null
+++ b/Templates/ComboboxOverlay.goml
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<Border BorderWidth="1" Margin="1" MinimumSize="20;20" Height="{TemplatedHeight}" Width="{TemplatedWidth}" >
+ <Scroller Name="scroller1" Margin="1" VerticalScrolling="true"
+ Height="{TemplatedHeight}" Width="{TemplatedWidth}">
+ <VerticalStack Height="-1" Width="{TemplatedWidth}" Name="List" Margin="0" VerticalAlignment="Top"/>
+ </Scroller>
+</Border> \ No newline at end of file