Skip to content

Commit 1f8506a

Browse files
committed
Add Virtualizing WrapPanel
1 parent 0d610ab commit 1f8506a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Flow.Launcher/Flow.Launcher.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
</PackageReference>
9999
<PackageReference Include="PropertyChanged.Fody" Version="3.4.0" />
100100
<PackageReference Include="SharpVectors" Version="1.7.6" />
101+
<PackageReference Include="VirtualizingWrapPanel" Version="1.5.7" />
101102
</ItemGroup>
102103

103104
<ItemGroup>
@@ -120,7 +121,7 @@
120121
<!-- Work around https://github.com/dotnet/wpf/issues/6792 -->
121122

122123
<ItemGroup>
123-
<FilteredAnalyzer Include="@(Analyzer->Distinct())" />
124+
<FilteredAnalyzer Include="@(Analyzer-&gt;Distinct())" />
124125
<Analyzer Remove="@(Analyzer)" />
125126
<Analyzer Include="@(FilteredAnalyzer)" />
126127
</ItemGroup>

Flow.Launcher/SettingWindow.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
xmlns:ui="http://schemas.modernwpf.com/2019"
1212
xmlns:userSettings="clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure"
1313
xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
14+
xmlns:wpftk="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
1415
Title="{DynamicResource flowlauncher_settings}"
1516
Width="{Binding SettingWindowWidth, Mode=TwoWay}"
1617
Height="{Binding SettingWindowHeight, Mode=TwoWay}"
@@ -1051,7 +1052,7 @@
10511052
VirtualizingStackPanel.VirtualizationMode="Recycling">
10521053
<ListBox.ItemsPanel>
10531054
<ItemsPanelTemplate>
1054-
<StackPanel Margin="0,0,0,18" />
1055+
<VirtualizingStackPanel Margin="0,0,0,18" />
10551056
</ItemsPanelTemplate>
10561057
</ListBox.ItemsPanel>
10571058
<ListBox.ItemTemplate>
@@ -1511,7 +1512,7 @@
15111512
</ListBox.GroupStyle>
15121513
<ListBox.ItemsPanel>
15131514
<ItemsPanelTemplate>
1514-
<WrapPanel Margin="0,0,0,10" />
1515+
<wpftk:VirtualizingWrapPanel />
15151516
</ItemsPanelTemplate>
15161517
</ListBox.ItemsPanel>
15171518
<ListBox.ItemTemplate>

0 commit comments

Comments
 (0)