CollectionView is one of the most commonly used controls in .NET MAUI applications. It is used to display product catalogs, transaction histories, activity feeds, chat conversations, and other data-driven lists.
Because it relies on native platform controls, its behavior can differ between Android, iOS, Mac Catalyst, and Windows. A CollectionView that works correctly on one platform may behave differently on another, particularly when an application uses custom handlers, selection logic, item templates, or complex scrolling layouts.
.NET MAUI 11 introduces important changes to the CollectionView architecture. The newer CollectionView2 handler is now used by default on Windows, bringing its implementation closer to the optimized handlers already used on other platforms. This change improves virtualization and scrolling behavior, but it also introduces differences that developers should review before upgrading existing applications.
If your application contains custom CollectionView handlers or depends on the previous Windows selection behavior, upgrading without testing can introduce unexpected UI changes.
This article explains what changed in .NET MAUI 11, how the new CollectionView handler works, which existing implementations need attention, and how to validate your application before shipping.
Understanding CollectionView in .NET MAUI
CollectionView is designed to display collections of data with support for scrolling, selection, and different layout arrangements.
Unlike a basic vertical layout containing multiple controls, CollectionView uses virtualization provided by the underlying native platform controls. This means it does not need to create every item in a large collection at the same time.
For example, consider an application displaying thousands of products.
A traditional layout that creates a separate view for every product can consume significant memory and affect rendering performance. CollectionView creates and manages the visible items more efficiently as the user scrolls.
A basic implementation looks like this:
<CollectionView ItemsSource="{Binding Products}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="12">
<Label Text="{Binding Name}"
FontSize="16" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
The ItemsSource property connects the control to a collection in the view model, while ItemTemplate defines how each item should appear.
CollectionView also supports vertical and horizontal lists, grid layouts, grouping, empty views, headers, footers, and single or multiple selection.
Because these capabilities depend partly on native controls, the underlying handler plays an important role in how CollectionView behaves on each platform.
What Changed in .NET MAUI 11
One of the important changes in .NET MAUI 11 is the expanded use of CollectionView2.
The newer implementation uses optimized platform-specific handlers rather than relying on the same legacy implementation everywhere.
The Windows implementation is based on WinUI's ItemsRepeater. Starting with .NET 11 Preview 6, CollectionView2 became the default Windows handler.
This brings the Windows implementation closer to the optimized CollectionView architecture already used on Android, iOS, and Mac Catalyst.
The main areas developers should review include:
Windows CollectionView handler changes.
Item virtualization and scrolling behavior.
Selection visuals and multiple-selection behavior.
Custom handler registrations.
Platform-specific handler extensions.
Existing UI tests that depend on the previous appearance or behavior.
The CollectionView control itself has not been removed or deprecated. The change concerns its underlying implementation and the platform-specific APIs used to customize it.
Understanding the New Windows CollectionView2 Handler
The new Windows handler uses WinUI's ItemsRepeater to manage item presentation and virtualization.
ItemsRepeater is a WinUI control designed to efficiently display collections of elements. It provides more control over how items are generated, arranged, and virtualized.
In the previous Windows implementation, CollectionView relied on a ListView-based handler.
The new implementation changes that underlying architecture.
For developers, this means that applications using standard CollectionView properties and templates can generally continue using the same XAML.
However, applications that depend on the previous handler's internal behavior may require changes.
For example, a Windows application may have customizations that assume a particular native control structure or selection visual.
Those assumptions need to be reviewed because the new handler does not necessarily expose the same native implementation details.
The new handler also changes the appearance of selected items. Selected items are highlighted with a border that wraps the item, and the multiple-selection interface differs from the previous Windows implementation.
This is particularly important for applications that have custom selection designs or UI tests based on the previous appearance.
Reviewing Selection Behavior Before Upgrading
Selection is one of the most visible areas where developers may notice differences.
CollectionView supports single and multiple selection through SelectionMode.
For example:
<CollectionView ItemsSource="{Binding Products}"
SelectionMode="Single"
SelectedItem="{Binding SelectedProduct}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="12">
<Label Text="{Binding Name}" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
For applications that allow users to select multiple items, the selection mode can be changed:
<CollectionView ItemsSource="{Binding Products}"
SelectionMode="Multiple"
SelectedItems="{Binding SelectedProducts}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="12">
<Label Text="{Binding Name}" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
The underlying selection properties remain part of the CollectionView API. However, the visual representation of selection can differ between platform handlers.
If your application uses a custom selection design, test how selected items appear on Windows after upgrading.
Also verify that selection events, SelectedItem bindings, SelectedItems collections, and selection-clearing behavior continue to work as expected.
Do not assume that identical XAML guarantees identical native selection visuals across every platform.
Migrating Custom Handlers on iOS and Mac Catalyst
Another important migration area concerns custom CollectionView handlers on Apple platforms.
The optimized handlers were introduced as an alternative to the legacy handlers and became the default on iOS and Mac Catalyst in .NET MAUI 10.
In .NET MAUI 11, the legacy Apple handler APIs in the Microsoft.Maui.Controls.Handlers.Items namespace produce obsolete warnings.
This does not mean CollectionView itself is obsolete.
The warnings apply to the legacy handler APIs on iOS and Mac Catalyst.
If your application has a custom handler derived from the older CollectionViewHandler, you should review its implementation and move toward the optimized handler architecture.
The newer handler is:
Microsoft.Maui.Controls.Handlers.Items2.CollectionViewHandler2
A custom handler can be registered using the optimized handler type:
#if IOS || MACCATALYST
builder.ConfigureMauiHandlers(handlers =>
{
handlers.AddHandler<
Microsoft.Maui.Controls.CollectionView,
Microsoft.Maui.Controls.Handlers.Items2.CollectionViewHandler2>();
});
#endif
If you have a custom handler, derive it from CollectionViewHandler2 instead of the legacy CollectionViewHandler.
You should also review custom mapper implementations because the optimized handler uses different mapper extension points.
This migration may require more work when the application depends on legacy controller, cell, or layout customization.
Those extension points do not all have direct one-to-one replacements. Some customizations need to be adapted to the new handler architecture and native UICollectionViewLayout extension points.
For this reason, do not replace handler registrations mechanically without reviewing the actual customizations.
Checking Whether Your Application Uses the Legacy Windows Handler
Before upgrading, search your solution for custom CollectionView handler registrations.
Look for references to:
CollectionViewHandler
Also inspect platform-specific folders, custom handler classes, and MauiProgram.cs.
If your application explicitly registers the old Windows handler, determine whether that registration is still required.
.NET MAUI 11 provides a temporary compatibility option for applications that need the previous Windows implementation while migration work is in progress.
Add the following property to your project file:
<PropertyGroup>
<UseWindowsCollectionView2Handler>false</UseWindowsCollectionView2Handler>
</PropertyGroup>
This disables the new Windows CollectionView2 handler and restores the previous Windows handler.
The property is useful when you need to isolate a regression or compare the behavior of the two implementations.
However, it should be treated as a temporary migration aid rather than an automatic long-term solution.
If your application depends on the old handler's internal behavior, identify the specific dependency and plan the necessary changes.
The legacy Windows CollectionView handler remains supported and is not marked obsolete in .NET MAUI 11.
Testing Virtualization and Scrolling Performance
CollectionView is frequently used for screens containing large datasets. Therefore, scrolling and virtualization should be part of every migration test.
Consider a transaction history screen displaying several thousand records.
A developer may observe that the list works correctly with a small test dataset but becomes slow when the application loads real production data.
The migration should be tested using realistic item counts, template complexity, and image-loading behavior.
Pay attention to the following scenarios:
Scrolling from the beginning to the end of a large collection.
Loading additional items when the user reaches the end.
Updating ItemsSource while the collection is visible.
Adding and removing items dynamically.
Changing item templates.
Displaying images and asynchronously loaded content.
Rotating the device or changing the window size.
Restoring the previous scroll position after navigation.
Also inspect memory usage during repeated navigation between pages containing CollectionView controls.
Virtualization reduces unnecessary view creation, but it does not eliminate memory problems caused by large images, retained references, or poorly managed event subscriptions.
Avoid placing a CollectionView inside another scrolling container unless the layout has been carefully designed. Nested scrolling can create measurement and gesture-handling problems, particularly when the inner and outer controls compete for scroll input.
Reviewing EmptyView, Headers, and Dynamic Content
Applications frequently use CollectionView to display content that changes based on API responses.
For example, a shopping application might display products when data is available and an EmptyView when no products match the selected filters.
A typical implementation looks like this:
<CollectionView ItemsSource="{Binding Products}">
<CollectionView.EmptyView>
<VerticalStackLayout
Padding="24"
HorizontalOptions="Center"
VerticalOptions="Center">
<Label Text="No products found"
FontSize="18" />
<Label Text="Try changing your search filters." />
</VerticalStackLayout>
</CollectionView.EmptyView>
<CollectionView.ItemTemplate>
<DataTemplate>
<Label Text="{Binding Name}"
Padding="12" />
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
During migration, verify that the EmptyView appears correctly when the collection is empty or when ItemsSource changes.
Also test headers, footers, grouped collections, and dynamically updated item sources.
These scenarios are important because the visual tree can be rebuilt when the underlying collection or its layout changes.
A screen that initially renders correctly may still fail when the application clears the collection, receives a new API response, or changes filters while the user is scrolling.
A Practical Migration Checklist for Existing MAUI Applications
Before shipping a .NET MAUI 11 application, review the CollectionView implementation across all supported platforms.
Start by identifying every CollectionView instance in the solution. Include shared XAML, platform-specific views, reusable controls, and dynamically created CollectionView instances.
Next, inspect custom handler registrations and native control integrations. Pay particular attention to code that references legacy Apple handler APIs or assumes that Windows CollectionView uses a ListView-based implementation.
Then test the most important user journeys.
For a product application, this might include browsing products, selecting multiple items, applying filters, loading additional pages, and navigating back to a previous list.
For a financial application, it might include scrolling through transaction history, opening transaction details, and refreshing the list after a new transaction is added.
Finally, test on actual devices or representative platform environments. A successful build does not prove that native rendering, selection, scrolling, and accessibility behavior remain correct.
Common Problems During the Migration
Custom Handler No Longer Works
A custom handler may depend on the previous native control or mapper implementation.
Review the new Items2 handler architecture and update the custom handler and mapper registrations. Do not assume that legacy controller or cell extension points have direct replacements.
Selection Appearance Has Changed on Windows
The new handler uses different selection visuals from the previous Windows implementation.
Review the application's design requirements and test both single and multiple selection. If the previous appearance is temporarily required, use the compatibility property while planning the migration.
Scrolling Behaves Differently
Changes to virtualization and native layout behavior can expose assumptions in existing applications.
Test large collections, dynamic updates, nested scrolling, and item sizing. Also check whether custom layouts depend on the previous handler's measurement behavior.
Legacy Handler APIs Produce Warnings
On iOS and Mac Catalyst, legacy CollectionView handler APIs produce obsolete warnings in .NET MAUI 11.
Move custom implementations toward CollectionViewHandler2 and review the associated mapper and native customization points.
UI Tests Fail After the Upgrade
Some UI tests may depend on specific native visual elements or selection indicators.
Update tests to verify the intended application behavior rather than relying unnecessarily on implementation-specific visual details.
Best Practices Before Shipping
Do not treat the CollectionView migration as a simple framework upgrade.
Start by understanding which applications screens depend on CollectionView and how they use selection, virtualization, custom handlers, and dynamic data updates.
Keep the existing application behavior documented before upgrading. This makes it easier to identify genuine regressions rather than confusing expected changes in native visuals with application defects.
Test the Windows CollectionView2 handler separately, especially when the application has custom selection designs or native Windows integrations.
On iOS and Mac Catalyst, review legacy handler registrations and move custom implementations to the optimized handler architecture.
Use the compatibility switch only when necessary to isolate a problem or temporarily preserve previous Windows behavior.
Most importantly, validate the application with realistic datasets and actual user workflows across all supported platforms.
Summary
.NET MAUI 11 brings important CollectionView architecture changes, particularly through the new Windows CollectionView2 handler based on WinUI ItemsRepeater.
The new implementation improves virtualization and scrolling behavior while introducing differences in selection visuals and native handler customization.
Applications using standard CollectionView APIs may require little or no XAML modification. However, projects with custom handlers, platform-specific extensions, or assumptions about the previous Windows implementation should be reviewed carefully.
Before shipping, test scrolling, selection, dynamic data updates, empty views, custom layouts, and navigation behavior on every supported platform.
The goal is not simply to make the application compile with .NET MAUI 11. It is to ensure that the collection-based screens users depend on continue to behave correctly after the underlying native implementation changes.
Join the conversation! Your thoughts help the community grow.