Skip to content

Commit 6e76d87

Browse files
committed
Add VirtualPanel in other scrollviews
1 parent 03c9a1a commit 6e76d87

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Flow.Launcher/SettingWindow.xaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,8 @@
607607
<ScrollViewer
608608
Margin="0,0,0,0"
609609
Background="{DynamicResource Color01B}"
610-
ScrollViewer.CanContentScroll="False">
610+
ScrollViewer.CanContentScroll="False"
611+
VirtualizingStackPanel.IsVirtualizing="True">
611612
<StackPanel Margin="5,18,25,30" Orientation="Vertical">
612613
<TextBlock
613614
Grid.Row="2"
@@ -1506,7 +1507,7 @@
15061507
<DataTemplate>
15071508
<!-- Hover Layout Style -->
15081509
<Button
1509-
x:Name="StoreListItem"
1510+
Name="StoreListItem"
15101511
Margin="0"
15111512
Padding="0"
15121513
HorizontalAlignment="Stretch"
@@ -2251,14 +2252,15 @@
22512252
<ScrollViewer
22522253
Margin="0,0,0,0"
22532254
Padding="0,0,6,0"
2254-
ScrollViewer.CanContentScroll="False">
2255+
ScrollViewer.CanContentScroll="False"
2256+
VirtualizingStackPanel.IsVirtualizing="True">
22552257
<Border>
22562258
<Grid Margin="5,18,18,10">
22572259
<Grid.RowDefinitions>
22582260
<RowDefinition Height="43" />
22592261
<RowDefinition Height="80" />
22602262
<RowDefinition Height="146" />
2261-
2263+
22622264
<RowDefinition Height="50" />
22632265
<RowDefinition Height="*" />
22642266
<RowDefinition Height="50" />
@@ -2422,7 +2424,7 @@
24222424
Click="OnAddCustomHotkeyClick"
24232425
Content="{DynamicResource add}" />
24242426
</StackPanel>
2425-
2427+
24262428
<TextBlock
24272429
Grid.Row="6"
24282430
Margin="0,0,12,2"
@@ -2432,8 +2434,8 @@
24322434
Foreground="{DynamicResource Color05B}"
24332435
Text="{DynamicResource customQueryShortcut}" />
24342436
<ListView
2435-
Grid.Row="7"
24362437
Name="customShortcutView"
2438+
Grid.Row="7"
24372439
MinHeight="160"
24382440
Margin="0,6,0,0"
24392441
Background="{DynamicResource Color02B}"
@@ -2545,7 +2547,8 @@
25452547
<ScrollViewer
25462548
Margin="0,0,0,0"
25472549
Padding="5,0,24,0"
2548-
ScrollViewer.CanContentScroll="False">
2550+
ScrollViewer.CanContentScroll="False"
2551+
VirtualizingStackPanel.IsVirtualizing="True">
25492552
<Border>
25502553

25512554
<StackPanel>
@@ -2717,7 +2720,8 @@
27172720
<ScrollViewer
27182721
Margin="0,0,0,0"
27192722
Background="{DynamicResource Color01B}"
2720-
ScrollViewer.CanContentScroll="False">
2723+
ScrollViewer.CanContentScroll="False"
2724+
VirtualizingStackPanel.IsVirtualizing="True">
27212725
<StackPanel Margin="5,14,25,30" Orientation="Vertical">
27222726
<TextBlock
27232727
Grid.Row="2"

0 commit comments

Comments
 (0)