Skip to content

Commit 4267225

Browse files
committed
Use ui:GridView
1 parent b8ae220 commit 4267225

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Flow.Launcher/Resources/SettingWindowStyle.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
</Style>
327327

328328
<!--#region PluginStore Style-->
329-
<Style x:Key="StoreList" TargetType="ListViewItem">
329+
<Style x:Key="StoreList" TargetType="ui:GridViewItem">
330330
<Setter Property="Padding" Value="0 0 0 0" />
331331
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
332332
<Setter Property="HorizontalAlignment" Value="Stretch" />

Flow.Launcher/SettingPages/Views/SettingsPanePluginStore.xaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
</ikw:SimpleStackPanel>
125125

126126
</DockPanel>
127-
<ListView
127+
<ui:GridView
128128
x:Name="StoreListBox"
129129
Grid.Row="1"
130130
Grid.Column="0"
@@ -142,7 +142,7 @@
142142
VirtualizingPanel.IsVirtualizingWhenGrouping="True"
143143
VirtualizingPanel.ScrollUnit="Pixel"
144144
VirtualizingPanel.VirtualizationMode="Recycling">
145-
<ListView.ItemsPanel>
145+
<ui:GridView.ItemsPanel>
146146
<ItemsPanelTemplate>
147147
<wpftk:VirtualizingWrapPanel
148148
x:Name="ItemWrapPanel"
@@ -153,8 +153,8 @@
153153
SpacingMode="None"
154154
StretchItems="True" />
155155
</ItemsPanelTemplate>
156-
</ListView.ItemsPanel>
157-
<ListView.GroupStyle>
156+
</ui:GridView.ItemsPanel>
157+
<ui:GridView.GroupStyle>
158158
<GroupStyle HidesIfEmpty="True">
159159
<GroupStyle.ContainerStyle>
160160
<Style TargetType="{x:Type GroupItem}">
@@ -184,9 +184,9 @@
184184
</ItemsPanelTemplate>
185185
</GroupStyle.Panel>
186186
</GroupStyle>
187-
</ListView.GroupStyle>
187+
</ui:GridView.GroupStyle>
188188

189-
<ListView.ItemTemplate>
189+
<ui:GridView.ItemTemplate>
190190
<DataTemplate>
191191
<DataTemplate.Resources>
192192
<Style x:Key="StoreListItemBtnStyle" TargetType="Button">
@@ -368,7 +368,7 @@
368368
</Grid>
369369
</Button>
370370
</DataTemplate>
371-
</ListView.ItemTemplate>
372-
</ListView>
371+
</ui:GridView.ItemTemplate>
372+
</ui:GridView>
373373
</Grid>
374374
</ui:Page>

0 commit comments

Comments
 (0)