blob: 8316a5cea8acd5e9c49231161a35bae2cf66b6c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<Button Width="100" Height="200">
<Template>
<VerticalStack >
<Scroller Name="ItemsScroller" Background="Red" Width="Stretched">
<Label Text='Hello World and another part of text to test scrolling' Background='MediumSeaGreen' Margin='0' Fit="true" HorizontalAlignment="Left"/>
</Scroller>
<ScrollBar Style="HScrollBar" Value="{²../ItemsScroller.ScrollX}"
LargeIncrement="{../ItemsScroller.PageWidth}" SmallIncrement="1"
CursorRatio="{../ItemsScroller.ChildWidthRatio}" Maximum="{../ItemsScroller.MaxScrollX}"/>
</VerticalStack>
</Template>
</Button>
|