-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The data can be null for global header / footer items, so adding some nullability to try and validate if anything else was expecting this.
- Loading branch information
Showing
4 changed files
with
39 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
VirtualListView/Controls/VirtualListViewItemTemplateSelector.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
namespace Microsoft.Maui.Controls; | ||
#nullable enable | ||
|
||
namespace Microsoft.Maui.Controls; | ||
|
||
public abstract class VirtualListViewItemTemplateSelector | ||
{ | ||
public abstract DataTemplate SelectTemplate(object item, int sectionIndex, int itemIndex); | ||
public abstract DataTemplate SelectTemplate(object? item, int sectionIndex, int itemIndex); | ||
} | ||
|
||
public abstract class VirtualListViewSectionTemplateSelector | ||
{ | ||
public abstract DataTemplate SelectTemplate(object section, int sectionIndex); | ||
public abstract DataTemplate SelectTemplate(object? section, int sectionIndex); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters