|
6 | 6 | <Grid.ColumnDefinitions> |
7 | 7 | <ColumnDefinition /> |
8 | 8 | <ColumnDefinition /> |
9 | | - |
10 | 9 | </Grid.ColumnDefinitions> |
11 | 10 | <Grid.RowDefinitions> |
12 | 11 | <RowDefinition Height="200" /> |
13 | 12 | <RowDefinition /> |
14 | 13 | <RowDefinition /> |
15 | 14 | </Grid.RowDefinitions> |
16 | | - |
17 | | - <!--<SnippetDeferredScrolling>--> |
18 | | - <ScrollViewer Grid.Column="0" Grid.Row="0" Height="200" Name="sv1" IsDeferredScrollingEnabled="true"> |
19 | | - <StackPanel> |
20 | | - <TextBlock Text="1" Height="50"/> |
21 | | - <TextBlock Text="2" Height="50"/> |
22 | | - <TextBlock Text="3" Height="50"/> |
23 | | - <TextBlock Text="4" Height="50"/> |
24 | | - <TextBlock Text="5" Height="50"/> |
25 | | - <TextBlock Text="6" Height="50"/> |
26 | | - <TextBlock Text="7" Height="50"/> |
27 | | - <TextBlock Text="8" Height="50"/> |
28 | | - <TextBlock Text="9" Height="50"/> |
29 | | - <TextBlock Text="10" Height="50"/> |
30 | | - </StackPanel> |
31 | | - </ScrollViewer> |
| 15 | + <!--<SnippetDeferredScrolling>--> |
| 16 | + <ScrollViewer Height="200" Name="sv1" IsDeferredScrollingEnabled="true"> |
| 17 | + <StackPanel> |
| 18 | + <TextBlock Text="1" Height="50" /> |
| 19 | + <TextBlock Text="2" Height="50" /> |
| 20 | + <TextBlock Text="3" Height="50" /> |
| 21 | + <TextBlock Text="4" Height="50" /> |
| 22 | + <TextBlock Text="5" Height="50" /> |
| 23 | + <TextBlock Text="6" Height="50" /> |
| 24 | + <TextBlock Text="7" Height="50" /> |
| 25 | + <TextBlock Text="8" Height="50" /> |
| 26 | + <TextBlock Text="9" Height="50" /> |
| 27 | + <TextBlock Text="10" Height="50" /> |
| 28 | + </StackPanel> |
| 29 | + </ScrollViewer> |
32 | 30 | <!--</SnippetDeferredScrolling>--> |
33 | 31 | <TextBlock Text="VerticalOffset" Grid.Column="0" Grid.Row="1" /> |
34 | | - <TextBlock Text="ContentVerticalOffset" Grid.Column="0" Grid.Row="2" /> |
35 | | - <TextBlock x:Name="txt" Text="{Binding ElementName=sv1, Path=VerticalOffset}" Grid.Column="1" Grid.Row="1"/> |
36 | | - <TextBlock x:Name="txt2" Text="{Binding ElementName=sv1, Path=ContentVerticalOffset}" Grid.Column="1" Grid.Row="2"/> |
37 | | - |
38 | | - |
| 32 | + <TextBlock Text="ContentVerticalOffset" Grid.Column="0" Grid.Row="2" /> |
| 33 | + <TextBlock x:Name="txt" Text="{Binding ElementName=sv1, Path=VerticalOffset}" Grid.Column="1" Grid.Row="1"/> |
| 34 | + <TextBlock x:Name="txt2" Text="{Binding ElementName=sv1, Path=ContentVerticalOffset}" Grid.Column="1" Grid.Row="2"/> |
39 | 35 | </Grid> |
40 | 36 | </Window> |
0 commit comments