Skip to content

Commit

Permalink
Add missing ItemsPanel virtualization
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Nov 19, 2023
1 parent cb06296 commit 542f18e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions RevitLookup/Views/Pages/EventsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@
</Style.Triggers>
</Style>
</rl:DataGrid.RowStyle>
<rl:DataGrid.ItemsPanel>
<ItemsPanelTemplate>
<DataGridRowsPresenter
IsVirtualizing="True"
VirtualizationMode="Recycling"
IsContainerVirtualizable="True"
IsVirtualizingWhenGrouping="True" />
</ItemsPanelTemplate>
</rl:DataGrid.ItemsPanel>
<rl:DataGrid.GroupStyle>
<GroupStyle>
<GroupStyle.Panel>
Expand Down
12 changes: 10 additions & 2 deletions RevitLookup/Views/Pages/SnoopView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@
Binding="{Binding Value.Descriptor,
Converter={converters:CombinedDescriptorConverter},
Mode=OneTime}"
Header="Value">
</DataGridTextColumn>
Header="Value" />
<DataGridTextColumn
Width="61"
MinWidth="0"
Expand Down Expand Up @@ -198,6 +197,15 @@
</Style.Triggers>
</Style>
</rl:DataGrid.RowStyle>
<rl:DataGrid.ItemsPanel>
<ItemsPanelTemplate>
<DataGridRowsPresenter
IsVirtualizing="True"
VirtualizationMode="Recycling"
IsContainerVirtualizable="True"
IsVirtualizingWhenGrouping="True" />
</ItemsPanelTemplate>
</rl:DataGrid.ItemsPanel>
<rl:DataGrid.GroupStyle>
<GroupStyle>
<GroupStyle.Panel>
Expand Down

0 comments on commit 542f18e

Please sign in to comment.