Skip to content

Commit

Permalink
Update optimize-gridview-and-listview.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtn authored Jun 16, 2021
1 parent b2f642e commit d163650
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ The general strategy for the [**ContainerContentChanging**](/uwp/api/windows.ui.
}
```

4. If you run the app now and pan/scroll quickly through the grid view then you'll see the same behavior as for as for **x:Phase**.
4. If you run the app now and pan/scroll quickly through the grid view then you'll see the same behavior as for **x:Phase**.

## Container-recycling with heterogeneous collections

Expand Down Expand Up @@ -315,4 +315,4 @@ When recycling an item (**ListViewItem**/**GridViewItem**), the framework must d

When there is an uneven distribution of items that use different item templates then new item templates will likely need to be created during panning, and this negates many of the gains provided by virtualization. Additionally, an item template selector only considers five possible candidates when evaluating whether a particular container can be reused for the current data item. So you should carefully consider whether your data is appropriate for use with an item template selector before using one in your app. If your collection is mostly homogeneous then the selector is returning the same type most (possibly all) of the time. Just be aware of the price you're paying for the rare exceptions to that homegeneity, and consider whether using [**ChoosingItemContainer**](/uwp/api/windows.ui.xaml.controls.listviewbase.choosingitemcontainer) (or two items controls) is preferable.



0 comments on commit d163650

Please sign in to comment.