CommunityToolkit
CommunityToolkit copied to clipboard
Seems the ItemsSource and EmptyView code sample is misinterpreted
Type of issue
Other (describe below)
Description
Seems the ItemsSource and EmptyView code sample is misinterpreted Please check once again.
Page URL
https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/markup/extensions/bindable-layout-extensions
Content source URL
https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/maui/markup/extensions/bindable-layout-extensions.md
Document Version Independent Id
3b88c5af-9ceb-abde-2dc7-2daa1e8e50ea
Article author
@brminnick
Metadata
- ID: 3b88c5af-9ceb-abde-2dc7-2daa1e8e50ea
- Service: dotnet-communitytoolkit
- Sub-service: dotnet-maui-community-toolkit
Why do you think its misinterpreted? Can you maybe explain a bit more?
Here is the signature of the ItemsSource
method, it takes an IEnumerable
as its input but the code sample mentions a label (same as the empty view sample).
public static TLayout ItemsSource<TLayout>(this TLayout layout, IEnumerable source) where TLayout : BindableObject, ILayout {}
For more details, go through the description of the ItemsSource
and ItemTemplate
sections on that page.
Oh I see it looks like we have a copy/paste issue. Thanks I'll sort that