aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates/ScrollingListBox.goml
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/ScrollingListBox.goml
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/ScrollingListBox.goml')
-rw-r--r--Templates/ScrollingListBox.goml10
1 files changed, 5 insertions, 5 deletions
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