Skip to content

Commit cfb9078

Browse files
Merge pull request #10841 from dotnet/main
Merge main into live
2 parents e62b560 + e3594e6 commit cfb9078

File tree

3 files changed

+511
-465
lines changed

3 files changed

+511
-465
lines changed

snippets/xaml/VS_Snippets_Wpf/DeferredScrolling/xaml/window1.xaml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,31 @@
66
<Grid.ColumnDefinitions>
77
<ColumnDefinition />
88
<ColumnDefinition />
9-
109
</Grid.ColumnDefinitions>
1110
<Grid.RowDefinitions>
1211
<RowDefinition Height="200" />
1312
<RowDefinition />
1413
<RowDefinition />
1514
</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>
3230
<!--</SnippetDeferredScrolling>-->
3331
<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"/>
3935
</Grid>
4036
</Window>

0 commit comments

Comments
 (0)