aboutsummaryrefslogtreecommitdiffstatsci
path: root/Templates
diff options
context:
space:
mode:
Diffstat (limited to 'Templates')
-rw-r--r--Templates/ScrollingListBox.template5
-rw-r--r--Templates/TreeView.template4
2 files changed, 3 insertions, 6 deletions
diff --git a/Templates/ScrollingListBox.template b/Templates/ScrollingListBox.template
index 3b098df2..67300ae9 100644
--- a/Templates/ScrollingListBox.template
+++ b/Templates/ScrollingListBox.template
@@ -1,14 +1,13 @@
<?xml version="1.0"?>
<Border BorderWidth="1" Background="{./Background}">
<HorizontalStack Margin="1">
- <Scroller Name="scroller1"
- Margin="2" ScrollY="{../scrollbar1.Value}">
+ <Scroller Name="scroller1" Margin="2">
<VerticalStack Height="Fit" MinimumSize="10,10"
Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
</Scroller>
<ScrollBar Name="scrollbar1" Value="{²../scroller1.ScrollY}"
LargeIncrement="{../scroller1.PageHeight}" SmallIncrement="30" CursorSize="{../scroller1.ChildHeightRatio}"
- Maximum="{../scroller1.MaximumScroll}" Orientation="Vertical"
+ Maximum="{../scroller1.MaxScrollY}" Orientation="Vertical"
Width="14" />
</HorizontalStack>
</Border>
diff --git a/Templates/TreeView.template b/Templates/TreeView.template
index 9c18120e..0ac770b1 100644
--- a/Templates/TreeView.template
+++ b/Templates/TreeView.template
@@ -1,8 +1,6 @@
<?xml version="1.0"?>
<HorizontalStack>
- <Scroller Name="scroller1" Margin="1"
- Background="{./Background}"
- ScrollY="{../scrollbar1.Value}">
+ <Scroller Name="scroller1" Margin="1" Background="{./Background}">
<VerticalStack
Height="Fit" Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
</Scroller>