aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates
diff options
context:
space:
mode:
authorj-p <jp.bruyere@live.be>2016-10-04 16:55:37 +0200
committerGitHub <noreply@github.com>2016-10-04 16:55:37 +0200
commitfaad767304aa1280a907c9851e40d2b82a1a4f54 (patch)
treef345bb4a1db2f8f16936019ee9651a20953b6a99 /Templates
parent2616e6ee7a1a34036cc002d28543d0d7a657fdb2 (diff)
Inherited dims (#31)v0.5
* Implement 'Inherit' measure to reduce bindings load. modifié : Templates/ArrowButTemplate.crow modifié : Templates/Button.template modifié : Templates/CheckBox.template modifié : Templates/ComboBox.template modifié : Templates/DirectoryView.template modifié : Templates/Expandable.template modifié : Templates/GroupBox.template modifié : Templates/ListBox.template modifié : Templates/Menu.template modifié : Templates/MenuItem.template modifié : Templates/MessageBox.template modifié : Templates/Popper.template modifié : Templates/RadioButton.template modifié : Templates/ScrollBar.template modifié : Templates/ScrollingListBox.goml modifié : Templates/Spinner.template modifié : Templates/TabItem.template modifié : Templates/TreeView.template modifié : Templates/Window.template modifié : Templates/treeList.crow modifié : Tests/Interfaces/Container/0.crow modifié : Tests/Interfaces/TemplatedContainer/testTreeView.crow modifié : Tests/Interfaces/TemplatedControl/testItemTemplateTag.crow modifié : Tests/Interfaces/TmpExpandable.goml modifié : Tests/Interfaces/treeList.crow modifié : Tests/ui/Popper.template modifié : Tests/ui/tmpWindow.crow modifié : src/GraphicObjects/GraphicObject.cs modifié : src/Measure.cs * leave template bindings for sizing in ScrollBar template because Inherited values are not working. modifié : Templates/ScrollBar.template renommé : Tests/Interfaces/TemplatedControl/testScrollbar.goml -> Tests/Interfaces/TemplatedControl/testScrollbar.crow renommé : Tests/Interfaces/TemplatedControl/testSpinner.goml -> Tests/Interfaces/TemplatedControl/testSpinner.crow modifié : Tests/Tests.csproj * update nuspec
Diffstat (limited to 'Templates')
-rwxr-xr-xTemplates/ArrowButTemplate.crow1
-rwxr-xr-xTemplates/Button.template4
-rwxr-xr-xTemplates/CheckBox.template4
-rwxr-xr-xTemplates/ComboBox.template13
-rwxr-xr-xTemplates/DirectoryView.template14
-rwxr-xr-xTemplates/Expandable.template12
-rwxr-xr-xTemplates/GroupBox.template15
-rwxr-xr-xTemplates/ListBox.template5
-rw-r--r--Templates/Menu.template3
-rw-r--r--Templates/MenuItem.template1
-rw-r--r--Templates/MessageBox.template14
-rwxr-xr-xTemplates/Popper.template6
-rwxr-xr-xTemplates/RadioButton.template4
-rwxr-xr-xTemplates/ScrollBar.template7
-rw-r--r--Templates/ScrollingListBox.goml10
-rwxr-xr-xTemplates/Spinner.template7
-rw-r--r--Templates/TabItem.template4
-rw-r--r--Templates/TreeView.template5
-rwxr-xr-xTemplates/Window.template9
-rwxr-xr-xTemplates/treeList.crow2
20 files changed, 61 insertions, 79 deletions
diff --git a/Templates/ArrowButTemplate.crow b/Templates/ArrowButTemplate.crow
index fe0e122c..819a51ce 100755
--- a/Templates/ArrowButTemplate.crow
+++ b/Templates/ArrowButTemplate.crow
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<Border Name="Content"
Background="vgradient|0:White|0.1:LightGray|0.9:LightGray|1:Black" Foreground="DarkGray"
- Height="{../HeightPolicy}" Width="{../WidthPolicy}"
MouseEnter="{Foreground=White}"
MouseLeave="{Foreground=DarkGray}"
MouseDown="{Background=vgradient|0:Black|0.1:LightGray|0.9:LightGray|1:White}"
diff --git a/Templates/Button.template b/Templates/Button.template
index 959ad8cc..043f8a29 100755
--- a/Templates/Button.template
+++ b/Templates/Button.template
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<Border Background="{./Background}" MinimumSize="50,20" Height="{./HeightPolicy}" Width="{./WidthPolicy}"
- Foreground="Transparent" CornerRadius="{../CornerRadius}" BorderWidth="1"
+<Border Background="{./Background}" MinimumSize="50,20"
+ Foreground="Transparent" CornerRadius="{../CornerRadius}" BorderWidth="1"
MouseEnter="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black;caption.Foreground=White}"
MouseLeave="{Foreground=Transparent;caption.Foreground=LightGray}"
MouseDown="{Foreground=vgradient|0:Black|0.05:Gray|0.85:Gray|1:White}"
diff --git a/Templates/CheckBox.template b/Templates/CheckBox.template
index a3c0f23d..070f8e2e 100755
--- a/Templates/CheckBox.template
+++ b/Templates/CheckBox.template
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<HorizontalStack Style="Control" Background="{./Background}" Height="{./HeightPolicy}" Width="{./WidthPolicy}">
+<HorizontalStack Style="Control" Background="{./Background}">
<Image Style="Icon" Path="#Crow.Images.Icons.checkbox.svg"
SvgSub="{./IsChecked}"/>
- <Label Font="{./Font}" Text="{./Caption}" Height="{./HeightPolicy}" Width="{./WidthPolicy}"/>
+ <Label Font="{./Font}" Text="{./Caption}"/>
</HorizontalStack> \ No newline at end of file
diff --git a/Templates/ComboBox.template b/Templates/ComboBox.template
index d28a7b91..906e354d 100755
--- a/Templates/ComboBox.template
+++ b/Templates/ComboBox.template
@@ -1,12 +1,10 @@
<?xml version="1.0"?>
-<Popper Name="popper" PopDirection="Bottom" Height="{../HeightPolicy}" Width="{../WidthPolicy}">
+<Popper Name="popper" PopDirection="Bottom">
<Template>
- <Border CornerRadius="0" Foreground="LightGray" Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
- <HorizontalStack Margin="0
- " Spacing="1" Height="{../../../HeightPolicy}" Width="{../../../WidthPolicy}">
+ <Border CornerRadius="0" Foreground="LightGray">
+ <HorizontalStack Margin="0" Spacing="1">
<TextBox MinimumSize="80,10" Margin="1" Foreground="Black" Background="White"
- Text="{../../../../SelectedItem}"
- Height="{../../../../HeightPolicy}" Width="{../../../../WidthPolicy}"/>
+ Text="{../../../../SelectedItem}"/>
<Button Width="14" Height="14" Focusable="false"
Template="#Crow.Templates.ArrowButTemplate.crow">
<Image Margin="0" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
@@ -18,11 +16,10 @@
MinimumSize="{../../MinimumPopupSize}" Fit="true">
<Scroller Name="scroller1" Margin="2" VerticalScrolling="true"
MaximumSize="0,200"
- Height="{../HeightPolicy}" Width="{../WidthPolicy}"
HorizontalAlignment="Left"
ValueChanged="../../../_scroller_ValueChanged">
<VerticalStack LayoutChanged="../../../../_list_LayoutChanged"
- Height="Fit" Width="{../../WidthPolicy}" Name="ItemsContainer" Margin="0"
+ Height="Fit" Name="ItemsContainer" Margin="0"
HorizontalAlignment="Left"
VerticalAlignment="Top"/>
</Scroller>
diff --git a/Templates/DirectoryView.template b/Templates/DirectoryView.template
index 9b80c1e9..a6a29651 100755
--- a/Templates/DirectoryView.template
+++ b/Templates/DirectoryView.template
@@ -13,8 +13,8 @@
<ItemTemplate DataType="System.IO.DirectoryInfo" Data="GetFileSystemInfos">
<Expandable Caption="{Name}" >
<Template>
- <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}">
- <HorizontalStack Spacing="1" Height="Fit" Width="{./WidthPolicy}"
+ <VerticalStack>
+ <HorizontalStack Spacing="1" Height="Fit"
MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}"
MouseLeave="{Background=Transparent}">
<Image Margin="2" Width="12" Height="12"
@@ -22,15 +22,15 @@
SvgSub="{./IsExpanded}"/>
<Image Margin="2" Width="14" Height="14"
Path="#Crow.Images.Icons.folder.svg"/>
- <Label Text="{./Caption}" Width="{./WidthPolicy}"/>
+
+ <Label Text="{./Caption}"/>
</HorizontalStack>
- <Container Name="Content" Visible="false"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}"/>
+ <Container Name="Content" Visible="false"/>
</VerticalStack>
</Template>
- <HorizontalStack Height="Fit" Width="{./WidthPolicy}">
+ <HorizontalStack Height="Fit">
<GraphicObject Width="12" Height="10"/>
- <TreeView Name="List" Height="Fit" Width="{./WidthPolicy}"
+ <TreeView Name="List" Height="Fit"
Template="#Crow.Templates.treeList.crow" />
</HorizontalStack>
</Expandable>
diff --git a/Templates/Expandable.template b/Templates/Expandable.template
index 14a59dd9..acae6d81 100755
--- a/Templates/Expandable.template
+++ b/Templates/Expandable.template
@@ -1,15 +1,13 @@
<?xml version="1.0"?>
-<Border BorderWidth="1" Foreground="{./Foreground}" Background="{./Background}"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}">
- <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}">
- <HorizontalStack Spacing="1" Height="Fit" Width="{./WidthPolicy}">
+<Border BorderWidth="1" Foreground="{./Foreground}" Background="{./Background}">
+ <VerticalStack>
+ <HorizontalStack Spacing="1" Height="Fit">
<Image Style="Icon" Margin="2"
Visible="{./HasContent}"
Path="{./Image}"
SvgSub="{./IsExpanded}"/>
- <Label Text="{./Caption}" Width="{./WidthPolicy}"/>
+ <Label Text="{./Caption}"/>
</HorizontalStack>
- <Container Name="Content" Visible="false"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}"/>
+ <Container Name="Content" Visible="false"/>
</VerticalStack>
</Border> \ No newline at end of file
diff --git a/Templates/GroupBox.template b/Templates/GroupBox.template
index 4e70ceae..199cfe9b 100755
--- a/Templates/GroupBox.template
+++ b/Templates/GroupBox.template
@@ -1,13 +1,10 @@
<?xml version="1.0"?>
-<Container Background="{./Background}" Height="{./HeightPolicy}" Width="{./WidthPolicy}">
- <Group Height="{./HeightPolicy}" Width="{./WidthPolicy}">
- <VerticalStack Spacing="0"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}">
- <GraphicObject Height="6" Width="{./WidthPolicy}"/>
- <Border CornerRadius="5" BorderWidth="1" Margin="10" Foreground="{./Foreground}"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}">
- <Container Name="Content" Margin="0" MinimumSize="70,10"
- Height="{../../../HeightPolicy}" Width="{../../../WidthPolicy}"/>
+<Container Background="{./Background}">
+ <Group>
+ <VerticalStack Spacing="0">
+ <GraphicObject Height="6"/>
+ <Border CornerRadius="5" BorderWidth="1" Margin="10" Foreground="{./Foreground}">
+ <Container Name="Content" Margin="0" MinimumSize="70,10"/>
</Border>
</VerticalStack>
<Label Text="{./Caption}" VerticalAlignment="Top" Left="8"
diff --git a/Templates/ListBox.template b/Templates/ListBox.template
index 36f2f61e..18f01c9d 100755
--- a/Templates/ListBox.template
+++ b/Templates/ListBox.template
@@ -1,9 +1,8 @@
<?xml version="1.0"?>
-<Border BorderWidth="1" Margin="1" MinimumSize="10,10" Height="{./HeightPolicy}" Width="{./WidthPolicy}" >
+<Border BorderWidth="1" Margin="1" MinimumSize="10,10">
<Scroller Name="scroller1" Margin="1" VerticalScrolling="true"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}"
ValueChanged="./_scroller_ValueChanged">
<VerticalStack LayoutChanged="./_list_LayoutChanged"
- Height="Fit" Width="{./WidthPolicy}" Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
+ Height="Fit" Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
</Scroller>
</Border> \ No newline at end of file
diff --git a/Templates/Menu.template b/Templates/Menu.template
index d49e0b31..c560043c 100644
--- a/Templates/Menu.template
+++ b/Templates/Menu.template
@@ -1,3 +1,2 @@
<?xml version="1.0"?>
-<HorizontalStack Name="ItemsContainer" Margin="0" Background="{./Background}"
- Width="{./WidthPolicy}" Height="{./HeightPolicy}"/>
+<HorizontalStack Name="ItemsContainer" Margin="0" Background="{./Background}"/>
diff --git a/Templates/MenuItem.template b/Templates/MenuItem.template
index c6c545f6..b814e2c6 100644
--- a/Templates/MenuItem.template
+++ b/Templates/MenuItem.template
@@ -8,7 +8,6 @@
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}"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}"
MinimumSize = "60,0"
Foreground="Transparent"
Background="{./Background}">
diff --git a/Templates/MessageBox.template b/Templates/MessageBox.template
index e9dc5148..9c361ea6 100644
--- a/Templates/MessageBox.template
+++ b/Templates/MessageBox.template
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
-<Border Height="{./HeightPolicy}" Width="{./WidthPolicy}" CornerRadius="0"
+<Border CornerRadius="0"
MouseEnter="./onBorderMouseEnter"
MouseLeave="./onBorderMouseLeave">
- <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}" Background="{./Background}">
- <Border BorderWidth="0" Foreground="White" Width="{./WidthPolicy}" Height="Fit"
+ <VerticalStack Background="{./Background}">
+ <Border BorderWidth="0" Foreground="White" Height="Fit"
Background="vgradient|0:0.4,0.6,0.0,0.5|1:0.0,0.8,0.8,0.9">
- <HorizontalStack Name="hs" Margin="2" Spacing="1" Width="{./WidthPolicy}" Height="Fit" >
+ <HorizontalStack Name="hs" Margin="2" Spacing="1" Height="Fit" >
<GraphicObject Width="5" Height="5"/>
<Image Margin="1" Width="12" Height="12" Path="{./Icon}"/>
- <Label Foreground="White" Width="{./WidthPolicy}" Margin="1" TextAlignment="Center" Text="{./Title}" />
+ <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Title}" />
<Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="12" Width="12"
MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
<Image Focusable="true" Name="Image" Path="#Crow.Images.Icons.exit2.svg"
@@ -17,9 +17,9 @@
<GraphicObject Width="5" Height="5"/>
</HorizontalStack>
</Border>
- <HorizontalStack Margin="5" Height="{./HeightPolicy}" Width="{./WidthPolicy}">
+ <HorizontalStack Margin="5">
<Image Name="Image" Width="20%" Height="20" Path="#Crow.Images.Icons.iconInfo.svg" />
- <Label Margin="5" Font="serif, 10" Height="{./HeightPolicy}" Width="80%" Text="{./Message}"
+ <Label Margin="5" Font="serif, 10" Width="80%" Text="{./Message}"
TextAlignment="Left"
Multiline="true" />
</HorizontalStack>
diff --git a/Templates/Popper.template b/Templates/Popper.template
index a36daaee..c473cecb 100755
--- a/Templates/Popper.template
+++ b/Templates/Popper.template
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
-<Border Background="{./Background}" BorderWidth="1" Foreground="{./Foreground}" Height="Fit" Width="{./WidthPolicy}">
- <HorizontalStack Spacing="1" Height="Fit" Width="{./WidthPolicy}">
+<Border Background="{./Background}" BorderWidth="1" Foreground="{./Foreground}" Height="Fit">
+ <HorizontalStack Spacing="1" Height="Fit">
<Image Style="Icon" Margin="2"
Path="#Crow.Images.Icons.expandable.svg" SvgSub="{./IsPopped}"/>
- <Label Text="{./Caption}" Width="{./WidthPolicy}"/>
+ <Label Text="{./Caption}" />
</HorizontalStack>
</Border> \ No newline at end of file
diff --git a/Templates/RadioButton.template b/Templates/RadioButton.template
index 6d2e9de4..b96eec2c 100755
--- a/Templates/RadioButton.template
+++ b/Templates/RadioButton.template
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<HorizontalStack Style="Control" Background="{./Background}" Height="{./HeightPolicy}" Width="{./WidthPolicy}">
+<HorizontalStack Style="Control" Background="{./Background}">
<Image Style="Icon" Path="#Crow.Images.Icons.radiobutton.svg"
SvgSub="{./IsChecked}"/>
- <Label Text="{./Caption}" Height="{./HeightPolicy}" Width="{./WidthPolicy}"/>
+ <Label Text="{./Caption}"/>
</HorizontalStack> \ No newline at end of file
diff --git a/Templates/ScrollBar.template b/Templates/ScrollBar.template
index 4164c30d..3cd4d0a4 100755
--- a/Templates/ScrollBar.template
+++ b/Templates/ScrollBar.template
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
-<Border BorderWidth="1" Foreground="LightGray" Width="{./WidthPolicy}" Height="{./HeightPolicy}">
- <GenericStack Orientation="{./Orientation}" Spacing="0"
- Width="{./WidthPolicy}" Height="{./HeightPolicy}">
+<Border BorderWidth="1" Foreground="LightGray">
+ <GenericStack Orientation="{./Orientation}" Spacing="0">
<Button MouseRepeat="true" Width="12" Height="12" MouseClick="./onScrollBack"
Template="#Crow.Templates.ArrowButTemplate.crow">
<Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="up"/>
@@ -10,10 +9,10 @@
Orientation="{./Orientation}"
Value="{./Value}"
Maximum="{./Maximum}"
+ Height="{./HeightPolicy}" Width="{./WidthPolicy}"
LargeIncrement="{./LargeIncrement}"
SmallIncrement="{./SmallIncrement}"
Background="hgradient|0:DimGray|0.1:Gray|0.95:Gray|1:White"
- Width="{./WidthPolicy}" Height="{./HeightPolicy}"
ValueChanged="./onSliderValueChange"/>
<Button MouseRepeat="true" Width="12" Height="12" MouseClick="./onScrollForth"
Template="#Crow.Templates.ArrowButTemplate.crow">
diff --git a/Templates/ScrollingListBox.goml b/Templates/ScrollingListBox.goml
index 54e3eb48..2093d4d8 100644
--- a/Templates/ScrollingListBox.goml
+++ b/Templates/ScrollingListBox.goml
@@ -1,15 +1,15 @@
<?xml version="1.0"?>
-<Border BorderWidth="1" Height="{./HeightPolicy}" Width="{./WidthPolicy}" Background="{./Background}">
- <HorizontalStack Margin="1" Height="{./HeightPolicy}" Width="{./WidthPolicy}" >
- <Scroller Name="scroller1" Height="{./HeightPolicy}" Width="{./WidthPolicy}"
+<Border BorderWidth="1" Background="{./Background}">
+ <HorizontalStack Margin="1">
+ <Scroller Name="scroller1"
Margin="2" VerticalScrolling="true" ScrollY="{../scrollbar1.Value}"
ValueChanged="./_scroller_ValueChanged">
- <VerticalStack Width="{./WidthPolicy}" Height="-1" MinimumSize="10,10"
+ <VerticalStack Height="Fit" MinimumSize="10,10"
Name="ItemsContainer" Margin="0" VerticalAlignment="Top"
LayoutChanged="./_list_LayoutChanged"/>
</Scroller>
<ScrollBar Name="scrollbar1" Value="{../scroller1.ScrollY}"
Maximum="{../scroller1.MaximumScroll}" Orientation="Vertical"
- Width="14" Height="{./HeightPolicy}" />
+ Width="14" />
</HorizontalStack>
</Border> \ No newline at end of file
diff --git a/Templates/Spinner.template b/Templates/Spinner.template
index b07e17b3..af22628c 100755
--- a/Templates/Spinner.template
+++ b/Templates/Spinner.template
@@ -1,9 +1,8 @@
<?xml version="1.0"?>
-<HorizontalStack MinimumSize="40,10" Name="hstack" Margin="0" Spacing="0"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}">
- <Border BorderWidth="1" Height="{./HeightPolicy}" Width="80%" Background="White"
+<HorizontalStack MinimumSize="40,10" Name="hstack" Margin="0" Spacing="0">
+ <Border BorderWidth="1" Width="80%" Background="White"
Foreground="DimGray" Margin="0">
- <Label Foreground="DimGray" Height="{../../../HeightPolicy}" Width="Stretched"
+ <Label Foreground="DimGray" Width="Stretched"
Text="{../../../Value}" TextAlignment="Right" Margin="0"/>
</Border>
<VerticalStack MinimumSize="8,10" Width="20%" Height="Stretched" Spacing="0" Margin="0" Background="Red">
diff --git a/Templates/TabItem.template b/Templates/TabItem.template
index ce2a270e..8028a8e5 100644
--- a/Templates/TabItem.template
+++ b/Templates/TabItem.template
@@ -1,6 +1,5 @@
<?xml version="1.0"?>
<GenericStack Orientation="Vertical" Spacing="0"
- Width="{./WidthPolicy}" Height="{./HeightPolicy}"
Background="Onyx"
MouseEnter="{caption.Foreground=White}"
MouseLeave="{caption.Foreground=Gray}">
@@ -16,7 +15,6 @@
MouseClick="../../../../butCloseTabClick"/>
</Border>
</HorizontalStack>
- <Container
- Name="Content" Width="{./WidthPolicy}" Height="{./HeightPolicy}"/>
+ <Container Name="Content"/>
</GenericStack>
diff --git a/Templates/TreeView.template b/Templates/TreeView.template
index 377de50c..25c93f15 100644
--- a/Templates/TreeView.template
+++ b/Templates/TreeView.template
@@ -1,12 +1,11 @@
<?xml version="1.0"?>
-<HorizontalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}">
+<HorizontalStack>
<Scroller Name="scroller1" Margin="1" VerticalScrolling="true"
Background="{./Background}"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}"
ScrollY="{../scrollbar1.Value}"
ValueChanged="./_scroller_ValueChanged">
<VerticalStack LayoutChanged="./_list_LayoutChanged"
- Height="Fit" Width="{./WidthPolicy}" Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
+ Height="Fit" Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
</Scroller>
<ScrollBar
Name="scrollbar1"
diff --git a/Templates/Window.template b/Templates/Window.template
index 6b3932c1..bbd1e57a 100755
--- a/Templates/Window.template
+++ b/Templates/Window.template
@@ -1,17 +1,16 @@
<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="White" CornerRadius="{./CornerRadius}"
Background="{./Background}"
- Height="{./HeightPolicy}" Width="{./WidthPolicy}"
MouseEnter="./onBorderMouseEnter"
MouseLeave="./onBorderMouseLeave">
- <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}" Spacing="0">
+ <VerticalStack Spacing="0">
<!-- <Border Name="TitleBar" BorderWidth="1" Foreground="White" Width="{./WidthPolicy}" Height="Fit"
Background="vgradient|0:0.4,0.6,0.0,0.5|1:0.0,0.8,0.8,0.9">-->
<HorizontalStack Background="vgradient|0:0.4,0.6,0.0,0.5|1:0.0,0.8,0.8,0.9"
- Name="hs" Margin="2" Spacing="0" Width="{./WidthPolicy}" Height="Fit">
+ Name="hs" Margin="2" Spacing="0" Height="Fit">
<GraphicObject Width="5"/>
<Image Margin="1" Width="12" Height="12" Path="{./Icon}"/>
- <Label Foreground="White" Width="{./WidthPolicy}" Margin="1" TextAlignment="Center" Text="{./Title}" />
+ <Label Width="Stretched" Foreground="White" Margin="1" TextAlignment="Center" Text="{./Title}" />
<Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="12" Width="12"
MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}">
<Image Focusable="true" Name="Image" Margin="0" Width="Stretched" Height="Stretched" Path="#Crow.Images.Icons.exit2.svg"
@@ -20,6 +19,6 @@
<GraphicObject Width="5"/>
</HorizontalStack>
<!-- </Border>-->
- <Container Name="Content" MinimumSize="50,50" Height="{./HeightPolicy}" Width="{./WidthPolicy}" Background="0.5,0.5,0.5,0.5"/>
+ <Container Name="Content" MinimumSize="50,50" Background="0.5,0.5,0.5,0.5"/>
</VerticalStack>
</Border> \ No newline at end of file
diff --git a/Templates/treeList.crow b/Templates/treeList.crow
index 160f351a..fbd47055 100755
--- a/Templates/treeList.crow
+++ b/Templates/treeList.crow
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<VerticalStack
- Height="Fit" Width="{../WidthPolicy}" Name="ItemsContainer"/> \ No newline at end of file
+ Height="Fit" Name="ItemsContainer"/> \ No newline at end of file