Creator · managedcode
Last updated · Sep 3, 2026
Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template
Creator · managedcode
Last updated · Sep 3, 2026
Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template
Creator · managedcode
Last updated · Sep 3, 2026
Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template
Creator · managedcode
Last updated · Sep 3, 2026
Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template
Sandbox only
Install targets
Codex install prompt
Install the "maui-collectionview" agent skill from https://github.com/managedcode/dotnet-skills/tree/main/catalog/Frameworks/Official-DotNet-MAUI/skills/maui-collectionview. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template", "item template", "grouping", "pull to refresh", "incremental loading", "swipe actions", "empty view", "selection mode", "scroll to item", displaying scrollable data, replacing ListView. DO NOT USE FOR: simple static layouts without scrollable data (use Grid or StackLayout), map pin lists (use Microsoft.Maui.Controls.Maps), table-based data entry forms, non-MAUI list controls, CarouselView or BindableLayout questions, platform-specific handler or renderer customization, diagnosing CollectionView bugs in the MAUI framework itself, or general MVVM/binding questions that merely happen to mention a list (use maui-data-binding). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"managedcode-maui-collectionview","task":"Install maui-collectionview","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add managedcode/dotnet-skills --skill maui-collectionview
Maintenance
fresh
5d since push
Risk
Safe to try
Quality score needs review
GitHub quality
477
73/100 Quality · 77/100 Trust
Coverage tags
Review notes
Quality score needs review · Stars/forks activity: 477 stars, 33 forks; issue activity unavailable in current metadata
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Safe to tryA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
477 GitHub stars
Repo activity
477 stars, 33 forks
Maintenance
5d since push
License
MIT
Install
npx skills add managedcode/dotnet-skills --skill maui-collectionview
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add managedcode/dotnet-skills --skill maui-collectionviewDo not use when
Alternative
1.9K Stars
npx skills add yanliudesign/mono-color-skill --skill mono-color
Alternative
61.0K Stars
npx skills add mvanhorn/last30days-skill -g
Alternative
38.4K Stars
npx skills add Imbad0202/academic-research-skills
Alternative
28.0K Stars
npx skills add assafelovic/gpt-researcher
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/managedcode-maui-collectionview/install
Agent should check
Copy prompt
Task: Use maui-collectionview in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/managedcode-maui-collectionview/install
Install command: npx skills add managedcode/dotnet-skills --skill maui-collectionview
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/managedcode-maui-collectionview/install
LLM text format
/api/skills/managedcode-maui-collectionview/install?format=text
Find alternatives
/api/skills/search?q=maui-collectionview&limit=3
Agent prompt
Use maui-collectionview for this task. Review https://www.openagentskill.com/api/skills/managedcode-maui-collectionview/install, then install with: npx skills add managedcode/dotnet-skills --skill maui-collectionviewRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/managedcode-maui-collectionview
LLM text
/api/registry/manifest/managedcode-maui-collectionview?format=text
Install alias
/api/registry/install/managedcode-maui-collectionview
Recommend
/api/registry/recommend?task=Use%20maui-collectionview%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Shortlist this skill and compare it with close alternatives before production adoption.
Role in stack
Companion skill
Primary fit
Research agents
Trust label
Strong shortlist
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO477 GitHub stars
Stars/forks activity
CHECK477 stars, 33 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Alternative shortlist
Similar skills that may fit this task.
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
Academic Research Skills for Claude Code: research → write → review → revise → finalize
Run autonomous deep research over web and local sources
--- name: maui-collectionview description: > Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template", "item template", "grouping", "pull to refresh", "incremental loading", "swipe actions", "empty view", "selection mode", "scroll to item", displaying scrollable data, replacing ListView. DO NOT USE FOR: simple static layouts without scrollable data (use Grid or StackLayout), map pin lists (use Microsoft.Maui.Controls.Maps), table-based data entry forms, non-MAUI list controls, CarouselView or BindableLayout questions, platform-specific handler or renderer customization, diagnosing CollectionView bugs in the MAUI framework itself, or general MVVM/binding questions that merely happen to mention a list (use maui-data-binding). license: MIT ---
# CollectionView — .NET MAUI
`CollectionView` is the primary control for displaying scrollable lists and grids of data in .NET MAUI. It replaces `ListView` with better performance, flexible layouts, and no `ViewCell` requirement.
## When to Use
- Displaying a scrollable list or grid of data items - Binding a collection of objects to a templated item layout - Adding selection (single or multiple), grouping, or pull-to-refresh - Implementing infinite scroll / incremental loading - Showing swipe actions on list items - Displaying an empty state when no data is available
## When Not to Use
- Static layouts with a fixed number of items — use `Grid` or `StackLayout` directly - Map pin lists — use the `Microsoft.Maui.Controls.Maps` NuGet package - Table-based data entry forms — use standard form controls - Simple text-only lists with no interaction — consider `BindableLayout` on a `StackLayout`
## Scope Control — Answer Only What Was Asked
This skill is a **reference you consult**, not a checklist you apply. Most requests need one or two sections from it. Pulling in the rest makes the answer worse.
**Stop conditions — do NOT act when:**
- **The user asked a narrow question.** Answer that question only. Do not append grouping, swipe actions, empty views, snap points, or performance tips that were not asked about. - **The user's existing code already works.** Do not rewrite working markup to match the examples here. Point out a concrete defect; if there is none, say so and answer the question that was asked. - **The change is stylistic.** Renaming, reordering attributes, or restructuring a template that already behaves correctly is churn, not a fix. - **The control isn't `CollectionView`.** `CarouselView`, `BindableLayout`, and `ListView`-in-maintenance code have different rules. Do not rewrite `ListView` code the user did not ask about — but if they ask *which* control to use, or are migrating from Xamarin.Forms, recommend `CollectionView` (see [Migrating from ListView](#migrating-from-listview)). - **The problem is really a binding, DI, or navigation problem** that happens to involve a list — defer to `maui-data-binding`, `maui-dependency-injection`, or `maui-shell-navigation`.
**The API sections below are a reference, not a checklist — offer them only when relevant.** Four rules are non-negotiable, because violating them produces code that does not work or silently loses compile-time checking:
1. Never use `ViewCell` as a `DataTemplate` root in `CollectionView`. 2. Use `ObservableCollection<T>` when the list mutates after first render. 3. Mutate the bound collection on the UI thread. 4. Set `x:DataType` on every `DataTemplate` (and on the page root) for compiled bindings.
Everything else — sizing strategy, snap points, header/footer, empty views — is optional and should be offered only when it addresses the user's actual problem.
## Inputs
- A data source (typically `ObservableCollection<T>`) bound to `ItemsSource` - A `DataTemplate` defining how each item renders - Optional: layout configuration, selection mode, grouping model, empty view
## Basic Setup
A complete, copy-pasteable page. Two things are load-bearing: the `xmlns:models` declaration that every `x:DataType="models:Item"` in this skill assumes, and the **root `x:DataType`** — without it the outer `ItemsSource` binding is not compiled:
```xml <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:models="clr-namespace:MyApp.Models" xmlns:vm="clr-namespace:MyApp.ViewModels" x:DataType="vm:ItemsViewModel" x:Class="MyApp.ItemsPage"> <ContentPage.BindingContext> <vm:ItemsViewModel /> </ContentPage.BindingContext> <CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <HorizontalStackLayout Padding="8" Spacing="8"> <Image Source="{Binding Icon}" WidthRequest="40" HeightRequest="40" /> <Label Text="{Binding Name}" VerticalOptions="Center" /> </HorizontalStackLayout> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> </ContentPage> ```
Later snippets show only the `CollectionView` element. When you hand a snippet to a user, include the matching `xmlns:` declaration for any prefix it uses, or the XAML will not compile.
The inline `<ContentPage.BindingContext>` above keeps the example self-contained. In an app that uses dependency injection, register the ViewModel instead and assign it through constructor injection (`BindingContext = vm;`) — see the **maui-dependency-injection** skill.
**Key rules:**
- Bind `ItemsSource` to an `ObservableCollection<T>` so the UI updates on add/remove. - Each item template root must be a `Layout` or `View` — **never use `ViewCell`**. - Always set `x:DataType` on `DataTemplate` for compiled bindings.
## Layouts
Set `ItemsLayout` to control arrangement. Default is `VerticalList`.
| Layout | XAML value | |---|---| | Vertical list | `VerticalList` (default) | | Horizontal list | `HorizontalList` | | Vertical grid | `GridItemsLayout` with `Orientation="Vertical"` | | Horizontal grid | `GridItemsLayout` with `Orientation="Horizontal"` |
### Grid Layout
```xml <CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="2" VerticalItemSpacing="8" HorizontalItemSpacing="8" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <Border Padding="8" StrokeThickness="0"> <VerticalStackLayout> <Image Source="{Binding Image}" HeightRequest="120" Aspect="AspectFill" /> <Label Text="{Binding Name}" FontAttributes="Bold" /> </VerticalStackLayout> </Border> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> ```
### Horizontal List
```xml <CollectionView ItemsSource="{Binding Items}" ItemsLayout="HorizontalList" /> ```
## Selection
### Selection Mode
| Mode | Property to bind | Binding mode | |---|---|---| | `None` | — | — | | `Single` | `SelectedItem` | `TwoWay` | | `Multiple` | `SelectedItems` | `OneWay` |
```xml <CollectionView ItemsSource="{Binding Items}" SelectionMode="Single" SelectedItem="{Binding CurrentItem, Mode=TwoWay}" SelectionChangedCommand="{Binding ItemSelectedCommand}" /> ```
For `Multiple` selection, bind `SelectedItems` (type `IList<object>`):
```xml <CollectionView SelectionMode="Multiple" SelectedItems="{Binding ChosenItems, Mode=OneWay}" /> ```
### Selected Visual State
Highlight selected items using `VisualStateManager`:
```xml <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <Grid Padding="8"> <VisualStateManager.VisualStateGroups> <VisualStateGroup Name="CommonStates"> <VisualState Name="Normal"> <VisualState.Setters> <Setter Property="BackgroundColor" Value="Transparent" /> </VisualState.Setters> </VisualState> <VisualState Name="Selected"> <VisualState.Setters> <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource PrimaryDark}}" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Label Text="{Binding Name}" /> </Grid> </DataTemplate> </CollectionView.ItemTemplate> ```
## Grouping
1. Create a group class inheriting from `List<T>`:
```csharp public class AnimalGroup : List<Animal> { public string Name { get; } public AnimalGroup(string name, List<Animal> animals) : base(animals) { Name = name; } } ```
2. Bind to `ObservableCollection<AnimalGroup>` and set `IsGrouped="True"`:
```xml <CollectionView ItemsSource="{Binding AnimalGroups}" IsGrouped="True"> <CollectionView.GroupHeaderTemplate> <DataTemplate x:DataType="models:AnimalGroup"> <Label Text="{Binding Name}" FontAttributes="Bold" BackgroundColor="{StaticResource Gray100}" Padding="8" /> </DataTemplate> </CollectionView.GroupHeaderTemplate> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Animal"> <Label Text="{Binding Name}" Padding="16,4" /> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> ```
## Pull-to-Refresh
Wrap `CollectionView` in a `RefreshView`. Set `IsRefreshing` back to `false` when done:
```xml <RefreshView IsRefreshing="{Binding IsRefreshing}" Command="{Binding RefreshCommand}"> <CollectionView ItemsSource="{Binding Items}" /> </RefreshView> ```
## Incremental Loading (Infinite Scroll)
```xml <CollectionView ItemsSource="{Binding Items}" RemainingItemsThreshold="5" RemainingItemsThresholdReachedCommand="{Binding LoadMoreCommand}" /> ```
> ⚠️ **Do NOT use with non-virtualizing layouts.** `LinearItemsLayout` and `GridItemsLayout` support virtualization. Using `BindableLayout` on a `StackLayout` as an alternative to `CollectionView` has no virtualization, which triggers infinite threshold-reached events.
## SwipeView — Binding from Inside DataTemplate
Commands inside a `DataTemplate` can't directly reach your ViewModel. Use `RelativeSource AncestorType`:
```xml <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <SwipeView> <SwipeView.RightItems> <SwipeItems> <SwipeItem Text="Delete" BackgroundColor="Red" Command="{Binding BindingContext.DeleteCommand, Source={RelativeSource AncestorType={x:Type ContentPage}}}" CommandParameter="{Binding}" /> </SwipeItems> </SwipeView.RightItems> <Grid Padding="8"> <Label Text="{Binding Name}" /> </Grid> </SwipeView> </DataTemplate> </CollectionView.ItemTemplate> ```
## EmptyView
Shown when `ItemsSource` is empty or null.
```xml <CollectionView ItemsSource="{Binding SearchResults}" EmptyView="No items found." /> ```
For a custom empty view, wrap in `ContentView`:
```xml <CollectionView ItemsSour
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for maui-collectionview, ready for a manual X post.
maui-collectionview: Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & gr... 477 stars https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=x
Listing + install path for maui-collectionview: https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=x Install: npx skills add managedcode/dotnet-skills --skill maui-collectionview
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to managedcode but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview/audit)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)managedcode
@managedcode
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
mono-color
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
1.9K StarsLast30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
61.0K StarsAcademic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
38.4K StarsGPT Researcher
Run autonomous deep research over web and local sources
28.0K StarsSandbox only
Install targets
Codex install prompt
Install the "maui-collectionview" agent skill from https://github.com/managedcode/dotnet-skills/tree/main/catalog/Frameworks/Official-DotNet-MAUI/skills/maui-collectionview. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template", "item template", "grouping", "pull to refresh", "incremental loading", "swipe actions", "empty view", "selection mode", "scroll to item", displaying scrollable data, replacing ListView. DO NOT USE FOR: simple static layouts without scrollable data (use Grid or StackLayout), map pin lists (use Microsoft.Maui.Controls.Maps), table-based data entry forms, non-MAUI list controls, CarouselView or BindableLayout questions, platform-specific handler or renderer customization, diagnosing CollectionView bugs in the MAUI framework itself, or general MVVM/binding questions that merely happen to mention a list (use maui-data-binding). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"managedcode-maui-collectionview","task":"Install maui-collectionview","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add managedcode/dotnet-skills --skill maui-collectionview
Maintenance
fresh
5d since push
Risk
Safe to try
Quality score needs review
GitHub quality
477
73/100 Quality · 77/100 Trust
Coverage tags
Review notes
Quality score needs review · Stars/forks activity: 477 stars, 33 forks; issue activity unavailable in current metadata
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Safe to tryA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
477 GitHub stars
Repo activity
477 stars, 33 forks
Maintenance
5d since push
License
MIT
Install
npx skills add managedcode/dotnet-skills --skill maui-collectionview
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add managedcode/dotnet-skills --skill maui-collectionviewDo not use when
Alternative
1.9K Stars
npx skills add yanliudesign/mono-color-skill --skill mono-color
Alternative
61.0K Stars
npx skills add mvanhorn/last30days-skill -g
Alternative
38.4K Stars
npx skills add Imbad0202/academic-research-skills
Alternative
28.0K Stars
npx skills add assafelovic/gpt-researcher
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/managedcode-maui-collectionview/install
Agent should check
Copy prompt
Task: Use maui-collectionview in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/managedcode-maui-collectionview/install
Install command: npx skills add managedcode/dotnet-skills --skill maui-collectionview
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/managedcode-maui-collectionview/install
LLM text format
/api/skills/managedcode-maui-collectionview/install?format=text
Find alternatives
/api/skills/search?q=maui-collectionview&limit=3
Agent prompt
Use maui-collectionview for this task. Review https://www.openagentskill.com/api/skills/managedcode-maui-collectionview/install, then install with: npx skills add managedcode/dotnet-skills --skill maui-collectionviewRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/managedcode-maui-collectionview
LLM text
/api/registry/manifest/managedcode-maui-collectionview?format=text
Install alias
/api/registry/install/managedcode-maui-collectionview
Recommend
/api/registry/recommend?task=Use%20maui-collectionview%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Shortlist this skill and compare it with close alternatives before production adoption.
Role in stack
Companion skill
Primary fit
Research agents
Trust label
Strong shortlist
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO477 GitHub stars
Stars/forks activity
CHECK477 stars, 33 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Alternative shortlist
Similar skills that may fit this task.
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
Academic Research Skills for Claude Code: research → write → review → revise → finalize
Run autonomous deep research over web and local sources
--- name: maui-collectionview description: > Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template", "item template", "grouping", "pull to refresh", "incremental loading", "swipe actions", "empty view", "selection mode", "scroll to item", displaying scrollable data, replacing ListView. DO NOT USE FOR: simple static layouts without scrollable data (use Grid or StackLayout), map pin lists (use Microsoft.Maui.Controls.Maps), table-based data entry forms, non-MAUI list controls, CarouselView or BindableLayout questions, platform-specific handler or renderer customization, diagnosing CollectionView bugs in the MAUI framework itself, or general MVVM/binding questions that merely happen to mention a list (use maui-data-binding). license: MIT ---
# CollectionView — .NET MAUI
`CollectionView` is the primary control for displaying scrollable lists and grids of data in .NET MAUI. It replaces `ListView` with better performance, flexible layouts, and no `ViewCell` requirement.
## When to Use
- Displaying a scrollable list or grid of data items - Binding a collection of objects to a templated item layout - Adding selection (single or multiple), grouping, or pull-to-refresh - Implementing infinite scroll / incremental loading - Showing swipe actions on list items - Displaying an empty state when no data is available
## When Not to Use
- Static layouts with a fixed number of items — use `Grid` or `StackLayout` directly - Map pin lists — use the `Microsoft.Maui.Controls.Maps` NuGet package - Table-based data entry forms — use standard form controls - Simple text-only lists with no interaction — consider `BindableLayout` on a `StackLayout`
## Scope Control — Answer Only What Was Asked
This skill is a **reference you consult**, not a checklist you apply. Most requests need one or two sections from it. Pulling in the rest makes the answer worse.
**Stop conditions — do NOT act when:**
- **The user asked a narrow question.** Answer that question only. Do not append grouping, swipe actions, empty views, snap points, or performance tips that were not asked about. - **The user's existing code already works.** Do not rewrite working markup to match the examples here. Point out a concrete defect; if there is none, say so and answer the question that was asked. - **The change is stylistic.** Renaming, reordering attributes, or restructuring a template that already behaves correctly is churn, not a fix. - **The control isn't `CollectionView`.** `CarouselView`, `BindableLayout`, and `ListView`-in-maintenance code have different rules. Do not rewrite `ListView` code the user did not ask about — but if they ask *which* control to use, or are migrating from Xamarin.Forms, recommend `CollectionView` (see [Migrating from ListView](#migrating-from-listview)). - **The problem is really a binding, DI, or navigation problem** that happens to involve a list — defer to `maui-data-binding`, `maui-dependency-injection`, or `maui-shell-navigation`.
**The API sections below are a reference, not a checklist — offer them only when relevant.** Four rules are non-negotiable, because violating them produces code that does not work or silently loses compile-time checking:
1. Never use `ViewCell` as a `DataTemplate` root in `CollectionView`. 2. Use `ObservableCollection<T>` when the list mutates after first render. 3. Mutate the bound collection on the UI thread. 4. Set `x:DataType` on every `DataTemplate` (and on the page root) for compiled bindings.
Everything else — sizing strategy, snap points, header/footer, empty views — is optional and should be offered only when it addresses the user's actual problem.
## Inputs
- A data source (typically `ObservableCollection<T>`) bound to `ItemsSource` - A `DataTemplate` defining how each item renders - Optional: layout configuration, selection mode, grouping model, empty view
## Basic Setup
A complete, copy-pasteable page. Two things are load-bearing: the `xmlns:models` declaration that every `x:DataType="models:Item"` in this skill assumes, and the **root `x:DataType`** — without it the outer `ItemsSource` binding is not compiled:
```xml <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:models="clr-namespace:MyApp.Models" xmlns:vm="clr-namespace:MyApp.ViewModels" x:DataType="vm:ItemsViewModel" x:Class="MyApp.ItemsPage"> <ContentPage.BindingContext> <vm:ItemsViewModel /> </ContentPage.BindingContext> <CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <HorizontalStackLayout Padding="8" Spacing="8"> <Image Source="{Binding Icon}" WidthRequest="40" HeightRequest="40" /> <Label Text="{Binding Name}" VerticalOptions="Center" /> </HorizontalStackLayout> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> </ContentPage> ```
Later snippets show only the `CollectionView` element. When you hand a snippet to a user, include the matching `xmlns:` declaration for any prefix it uses, or the XAML will not compile.
The inline `<ContentPage.BindingContext>` above keeps the example self-contained. In an app that uses dependency injection, register the ViewModel instead and assign it through constructor injection (`BindingContext = vm;`) — see the **maui-dependency-injection** skill.
**Key rules:**
- Bind `ItemsSource` to an `ObservableCollection<T>` so the UI updates on add/remove. - Each item template root must be a `Layout` or `View` — **never use `ViewCell`**. - Always set `x:DataType` on `DataTemplate` for compiled bindings.
## Layouts
Set `ItemsLayout` to control arrangement. Default is `VerticalList`.
| Layout | XAML value | |---|---| | Vertical list | `VerticalList` (default) | | Horizontal list | `HorizontalList` | | Vertical grid | `GridItemsLayout` with `Orientation="Vertical"` | | Horizontal grid | `GridItemsLayout` with `Orientation="Horizontal"` |
### Grid Layout
```xml <CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="2" VerticalItemSpacing="8" HorizontalItemSpacing="8" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <Border Padding="8" StrokeThickness="0"> <VerticalStackLayout> <Image Source="{Binding Image}" HeightRequest="120" Aspect="AspectFill" /> <Label Text="{Binding Name}" FontAttributes="Bold" /> </VerticalStackLayout> </Border> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> ```
### Horizontal List
```xml <CollectionView ItemsSource="{Binding Items}" ItemsLayout="HorizontalList" /> ```
## Selection
### Selection Mode
| Mode | Property to bind | Binding mode | |---|---|---| | `None` | — | — | | `Single` | `SelectedItem` | `TwoWay` | | `Multiple` | `SelectedItems` | `OneWay` |
```xml <CollectionView ItemsSource="{Binding Items}" SelectionMode="Single" SelectedItem="{Binding CurrentItem, Mode=TwoWay}" SelectionChangedCommand="{Binding ItemSelectedCommand}" /> ```
For `Multiple` selection, bind `SelectedItems` (type `IList<object>`):
```xml <CollectionView SelectionMode="Multiple" SelectedItems="{Binding ChosenItems, Mode=OneWay}" /> ```
### Selected Visual State
Highlight selected items using `VisualStateManager`:
```xml <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <Grid Padding="8"> <VisualStateManager.VisualStateGroups> <VisualStateGroup Name="CommonStates"> <VisualState Name="Normal"> <VisualState.Setters> <Setter Property="BackgroundColor" Value="Transparent" /> </VisualState.Setters> </VisualState> <VisualState Name="Selected"> <VisualState.Setters> <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource PrimaryDark}}" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Label Text="{Binding Name}" /> </Grid> </DataTemplate> </CollectionView.ItemTemplate> ```
## Grouping
1. Create a group class inheriting from `List<T>`:
```csharp public class AnimalGroup : List<Animal> { public string Name { get; } public AnimalGroup(string name, List<Animal> animals) : base(animals) { Name = name; } } ```
2. Bind to `ObservableCollection<AnimalGroup>` and set `IsGrouped="True"`:
```xml <CollectionView ItemsSource="{Binding AnimalGroups}" IsGrouped="True"> <CollectionView.GroupHeaderTemplate> <DataTemplate x:DataType="models:AnimalGroup"> <Label Text="{Binding Name}" FontAttributes="Bold" BackgroundColor="{StaticResource Gray100}" Padding="8" /> </DataTemplate> </CollectionView.GroupHeaderTemplate> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Animal"> <Label Text="{Binding Name}" Padding="16,4" /> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> ```
## Pull-to-Refresh
Wrap `CollectionView` in a `RefreshView`. Set `IsRefreshing` back to `false` when done:
```xml <RefreshView IsRefreshing="{Binding IsRefreshing}" Command="{Binding RefreshCommand}"> <CollectionView ItemsSource="{Binding Items}" /> </RefreshView> ```
## Incremental Loading (Infinite Scroll)
```xml <CollectionView ItemsSource="{Binding Items}" RemainingItemsThreshold="5" RemainingItemsThresholdReachedCommand="{Binding LoadMoreCommand}" /> ```
> ⚠️ **Do NOT use with non-virtualizing layouts.** `LinearItemsLayout` and `GridItemsLayout` support virtualization. Using `BindableLayout` on a `StackLayout` as an alternative to `CollectionView` has no virtualization, which triggers infinite threshold-reached events.
## SwipeView — Binding from Inside DataTemplate
Commands inside a `DataTemplate` can't directly reach your ViewModel. Use `RelativeSource AncestorType`:
```xml <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <SwipeView> <SwipeView.RightItems> <SwipeItems> <SwipeItem Text="Delete" BackgroundColor="Red" Command="{Binding BindingContext.DeleteCommand, Source={RelativeSource AncestorType={x:Type ContentPage}}}" CommandParameter="{Binding}" /> </SwipeItems> </SwipeView.RightItems> <Grid Padding="8"> <Label Text="{Binding Name}" /> </Grid> </SwipeView> </DataTemplate> </CollectionView.ItemTemplate> ```
## EmptyView
Shown when `ItemsSource` is empty or null.
```xml <CollectionView ItemsSource="{Binding SearchResults}" EmptyView="No items found." /> ```
For a custom empty view, wrap in `ContentView`:
```xml <CollectionView ItemsSour
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for maui-collectionview, ready for a manual X post.
maui-collectionview: Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & gr... 477 stars https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=x
Listing + install path for maui-collectionview: https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=x Install: npx skills add managedcode/dotnet-skills --skill maui-collectionview
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to managedcode but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview/audit)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)managedcode
@managedcode
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
mono-color
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
1.9K StarsLast30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
61.0K StarsAcademic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
38.4K StarsGPT Researcher
Run autonomous deep research over web and local sources
28.0K StarsSandbox only
Install targets
Codex install prompt
Install the "maui-collectionview" agent skill from https://github.com/managedcode/dotnet-skills/tree/main/catalog/Frameworks/Official-DotNet-MAUI/skills/maui-collectionview. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template", "item template", "grouping", "pull to refresh", "incremental loading", "swipe actions", "empty view", "selection mode", "scroll to item", displaying scrollable data, replacing ListView. DO NOT USE FOR: simple static layouts without scrollable data (use Grid or StackLayout), map pin lists (use Microsoft.Maui.Controls.Maps), table-based data entry forms, non-MAUI list controls, CarouselView or BindableLayout questions, platform-specific handler or renderer customization, diagnosing CollectionView bugs in the MAUI framework itself, or general MVVM/binding questions that merely happen to mention a list (use maui-data-binding). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"managedcode-maui-collectionview","task":"Install maui-collectionview","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add managedcode/dotnet-skills --skill maui-collectionview
Maintenance
fresh
5d since push
Risk
Safe to try
Quality score needs review
GitHub quality
477
73/100 Quality · 77/100 Trust
Coverage tags
Review notes
Quality score needs review · Stars/forks activity: 477 stars, 33 forks; issue activity unavailable in current metadata
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Safe to tryA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
477 GitHub stars
Repo activity
477 stars, 33 forks
Maintenance
5d since push
License
MIT
Install
npx skills add managedcode/dotnet-skills --skill maui-collectionview
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add managedcode/dotnet-skills --skill maui-collectionviewDo not use when
Alternative
1.9K Stars
npx skills add yanliudesign/mono-color-skill --skill mono-color
Alternative
61.0K Stars
npx skills add mvanhorn/last30days-skill -g
Alternative
38.4K Stars
npx skills add Imbad0202/academic-research-skills
Alternative
28.0K Stars
npx skills add assafelovic/gpt-researcher
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/managedcode-maui-collectionview/install
Agent should check
Copy prompt
Task: Use maui-collectionview in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/managedcode-maui-collectionview/install
Install command: npx skills add managedcode/dotnet-skills --skill maui-collectionview
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/managedcode-maui-collectionview/install
LLM text format
/api/skills/managedcode-maui-collectionview/install?format=text
Find alternatives
/api/skills/search?q=maui-collectionview&limit=3
Agent prompt
Use maui-collectionview for this task. Review https://www.openagentskill.com/api/skills/managedcode-maui-collectionview/install, then install with: npx skills add managedcode/dotnet-skills --skill maui-collectionviewRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/managedcode-maui-collectionview
LLM text
/api/registry/manifest/managedcode-maui-collectionview?format=text
Install alias
/api/registry/install/managedcode-maui-collectionview
Recommend
/api/registry/recommend?task=Use%20maui-collectionview%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Shortlist this skill and compare it with close alternatives before production adoption.
Role in stack
Companion skill
Primary fit
Research agents
Trust label
Strong shortlist
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO477 GitHub stars
Stars/forks activity
CHECK477 stars, 33 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Alternative shortlist
Similar skills that may fit this task.
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
Academic Research Skills for Claude Code: research → write → review → revise → finalize
Run autonomous deep research over web and local sources
--- name: maui-collectionview description: > Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template", "item template", "grouping", "pull to refresh", "incremental loading", "swipe actions", "empty view", "selection mode", "scroll to item", displaying scrollable data, replacing ListView. DO NOT USE FOR: simple static layouts without scrollable data (use Grid or StackLayout), map pin lists (use Microsoft.Maui.Controls.Maps), table-based data entry forms, non-MAUI list controls, CarouselView or BindableLayout questions, platform-specific handler or renderer customization, diagnosing CollectionView bugs in the MAUI framework itself, or general MVVM/binding questions that merely happen to mention a list (use maui-data-binding). license: MIT ---
# CollectionView — .NET MAUI
`CollectionView` is the primary control for displaying scrollable lists and grids of data in .NET MAUI. It replaces `ListView` with better performance, flexible layouts, and no `ViewCell` requirement.
## When to Use
- Displaying a scrollable list or grid of data items - Binding a collection of objects to a templated item layout - Adding selection (single or multiple), grouping, or pull-to-refresh - Implementing infinite scroll / incremental loading - Showing swipe actions on list items - Displaying an empty state when no data is available
## When Not to Use
- Static layouts with a fixed number of items — use `Grid` or `StackLayout` directly - Map pin lists — use the `Microsoft.Maui.Controls.Maps` NuGet package - Table-based data entry forms — use standard form controls - Simple text-only lists with no interaction — consider `BindableLayout` on a `StackLayout`
## Scope Control — Answer Only What Was Asked
This skill is a **reference you consult**, not a checklist you apply. Most requests need one or two sections from it. Pulling in the rest makes the answer worse.
**Stop conditions — do NOT act when:**
- **The user asked a narrow question.** Answer that question only. Do not append grouping, swipe actions, empty views, snap points, or performance tips that were not asked about. - **The user's existing code already works.** Do not rewrite working markup to match the examples here. Point out a concrete defect; if there is none, say so and answer the question that was asked. - **The change is stylistic.** Renaming, reordering attributes, or restructuring a template that already behaves correctly is churn, not a fix. - **The control isn't `CollectionView`.** `CarouselView`, `BindableLayout`, and `ListView`-in-maintenance code have different rules. Do not rewrite `ListView` code the user did not ask about — but if they ask *which* control to use, or are migrating from Xamarin.Forms, recommend `CollectionView` (see [Migrating from ListView](#migrating-from-listview)). - **The problem is really a binding, DI, or navigation problem** that happens to involve a list — defer to `maui-data-binding`, `maui-dependency-injection`, or `maui-shell-navigation`.
**The API sections below are a reference, not a checklist — offer them only when relevant.** Four rules are non-negotiable, because violating them produces code that does not work or silently loses compile-time checking:
1. Never use `ViewCell` as a `DataTemplate` root in `CollectionView`. 2. Use `ObservableCollection<T>` when the list mutates after first render. 3. Mutate the bound collection on the UI thread. 4. Set `x:DataType` on every `DataTemplate` (and on the page root) for compiled bindings.
Everything else — sizing strategy, snap points, header/footer, empty views — is optional and should be offered only when it addresses the user's actual problem.
## Inputs
- A data source (typically `ObservableCollection<T>`) bound to `ItemsSource` - A `DataTemplate` defining how each item renders - Optional: layout configuration, selection mode, grouping model, empty view
## Basic Setup
A complete, copy-pasteable page. Two things are load-bearing: the `xmlns:models` declaration that every `x:DataType="models:Item"` in this skill assumes, and the **root `x:DataType`** — without it the outer `ItemsSource` binding is not compiled:
```xml <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:models="clr-namespace:MyApp.Models" xmlns:vm="clr-namespace:MyApp.ViewModels" x:DataType="vm:ItemsViewModel" x:Class="MyApp.ItemsPage"> <ContentPage.BindingContext> <vm:ItemsViewModel /> </ContentPage.BindingContext> <CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <HorizontalStackLayout Padding="8" Spacing="8"> <Image Source="{Binding Icon}" WidthRequest="40" HeightRequest="40" /> <Label Text="{Binding Name}" VerticalOptions="Center" /> </HorizontalStackLayout> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> </ContentPage> ```
Later snippets show only the `CollectionView` element. When you hand a snippet to a user, include the matching `xmlns:` declaration for any prefix it uses, or the XAML will not compile.
The inline `<ContentPage.BindingContext>` above keeps the example self-contained. In an app that uses dependency injection, register the ViewModel instead and assign it through constructor injection (`BindingContext = vm;`) — see the **maui-dependency-injection** skill.
**Key rules:**
- Bind `ItemsSource` to an `ObservableCollection<T>` so the UI updates on add/remove. - Each item template root must be a `Layout` or `View` — **never use `ViewCell`**. - Always set `x:DataType` on `DataTemplate` for compiled bindings.
## Layouts
Set `ItemsLayout` to control arrangement. Default is `VerticalList`.
| Layout | XAML value | |---|---| | Vertical list | `VerticalList` (default) | | Horizontal list | `HorizontalList` | | Vertical grid | `GridItemsLayout` with `Orientation="Vertical"` | | Horizontal grid | `GridItemsLayout` with `Orientation="Horizontal"` |
### Grid Layout
```xml <CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="2" VerticalItemSpacing="8" HorizontalItemSpacing="8" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <Border Padding="8" StrokeThickness="0"> <VerticalStackLayout> <Image Source="{Binding Image}" HeightRequest="120" Aspect="AspectFill" /> <Label Text="{Binding Name}" FontAttributes="Bold" /> </VerticalStackLayout> </Border> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> ```
### Horizontal List
```xml <CollectionView ItemsSource="{Binding Items}" ItemsLayout="HorizontalList" /> ```
## Selection
### Selection Mode
| Mode | Property to bind | Binding mode | |---|---|---| | `None` | — | — | | `Single` | `SelectedItem` | `TwoWay` | | `Multiple` | `SelectedItems` | `OneWay` |
```xml <CollectionView ItemsSource="{Binding Items}" SelectionMode="Single" SelectedItem="{Binding CurrentItem, Mode=TwoWay}" SelectionChangedCommand="{Binding ItemSelectedCommand}" /> ```
For `Multiple` selection, bind `SelectedItems` (type `IList<object>`):
```xml <CollectionView SelectionMode="Multiple" SelectedItems="{Binding ChosenItems, Mode=OneWay}" /> ```
### Selected Visual State
Highlight selected items using `VisualStateManager`:
```xml <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <Grid Padding="8"> <VisualStateManager.VisualStateGroups> <VisualStateGroup Name="CommonStates"> <VisualState Name="Normal"> <VisualState.Setters> <Setter Property="BackgroundColor" Value="Transparent" /> </VisualState.Setters> </VisualState> <VisualState Name="Selected"> <VisualState.Setters> <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource PrimaryDark}}" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Label Text="{Binding Name}" /> </Grid> </DataTemplate> </CollectionView.ItemTemplate> ```
## Grouping
1. Create a group class inheriting from `List<T>`:
```csharp public class AnimalGroup : List<Animal> { public string Name { get; } public AnimalGroup(string name, List<Animal> animals) : base(animals) { Name = name; } } ```
2. Bind to `ObservableCollection<AnimalGroup>` and set `IsGrouped="True"`:
```xml <CollectionView ItemsSource="{Binding AnimalGroups}" IsGrouped="True"> <CollectionView.GroupHeaderTemplate> <DataTemplate x:DataType="models:AnimalGroup"> <Label Text="{Binding Name}" FontAttributes="Bold" BackgroundColor="{StaticResource Gray100}" Padding="8" /> </DataTemplate> </CollectionView.GroupHeaderTemplate> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Animal"> <Label Text="{Binding Name}" Padding="16,4" /> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> ```
## Pull-to-Refresh
Wrap `CollectionView` in a `RefreshView`. Set `IsRefreshing` back to `false` when done:
```xml <RefreshView IsRefreshing="{Binding IsRefreshing}" Command="{Binding RefreshCommand}"> <CollectionView ItemsSource="{Binding Items}" /> </RefreshView> ```
## Incremental Loading (Infinite Scroll)
```xml <CollectionView ItemsSource="{Binding Items}" RemainingItemsThreshold="5" RemainingItemsThresholdReachedCommand="{Binding LoadMoreCommand}" /> ```
> ⚠️ **Do NOT use with non-virtualizing layouts.** `LinearItemsLayout` and `GridItemsLayout` support virtualization. Using `BindableLayout` on a `StackLayout` as an alternative to `CollectionView` has no virtualization, which triggers infinite threshold-reached events.
## SwipeView — Binding from Inside DataTemplate
Commands inside a `DataTemplate` can't directly reach your ViewModel. Use `RelativeSource AncestorType`:
```xml <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <SwipeView> <SwipeView.RightItems> <SwipeItems> <SwipeItem Text="Delete" BackgroundColor="Red" Command="{Binding BindingContext.DeleteCommand, Source={RelativeSource AncestorType={x:Type ContentPage}}}" CommandParameter="{Binding}" /> </SwipeItems> </SwipeView.RightItems> <Grid Padding="8"> <Label Text="{Binding Name}" /> </Grid> </SwipeView> </DataTemplate> </CollectionView.ItemTemplate> ```
## EmptyView
Shown when `ItemsSource` is empty or null.
```xml <CollectionView ItemsSource="{Binding SearchResults}" EmptyView="No items found." /> ```
For a custom empty view, wrap in `ContentView`:
```xml <CollectionView ItemsSour
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for maui-collectionview, ready for a manual X post.
maui-collectionview: Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & gr... 477 stars https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=x
Listing + install path for maui-collectionview: https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=x Install: npx skills add managedcode/dotnet-skills --skill maui-collectionview
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to managedcode but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview/audit)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)managedcode
@managedcode
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
mono-color
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
1.9K StarsLast30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
61.0K StarsAcademic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
38.4K StarsGPT Researcher
Run autonomous deep research over web and local sources
28.0K StarsSandbox only
Install targets
Codex install prompt
Install the "maui-collectionview" agent skill from https://github.com/managedcode/dotnet-skills/tree/main/catalog/Frameworks/Official-DotNet-MAUI/skills/maui-collectionview. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template", "item template", "grouping", "pull to refresh", "incremental loading", "swipe actions", "empty view", "selection mode", "scroll to item", displaying scrollable data, replacing ListView. DO NOT USE FOR: simple static layouts without scrollable data (use Grid or StackLayout), map pin lists (use Microsoft.Maui.Controls.Maps), table-based data entry forms, non-MAUI list controls, CarouselView or BindableLayout questions, platform-specific handler or renderer customization, diagnosing CollectionView bugs in the MAUI framework itself, or general MVVM/binding questions that merely happen to mention a list (use maui-data-binding). After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"managedcode-maui-collectionview","task":"Install maui-collectionview","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
GitHub automation
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add managedcode/dotnet-skills --skill maui-collectionview
Maintenance
fresh
5d since push
Risk
Safe to try
Quality score needs review
GitHub quality
477
73/100 Quality · 77/100 Trust
Coverage tags
Review notes
Quality score needs review · Stars/forks activity: 477 stars, 33 forks; issue activity unavailable in current metadata
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Safe to tryA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
477 GitHub stars
Repo activity
477 stars, 33 forks
Maintenance
5d since push
License
MIT
Install
npx skills add managedcode/dotnet-skills --skill maui-collectionview
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add managedcode/dotnet-skills --skill maui-collectionviewDo not use when
Alternative
1.9K Stars
npx skills add yanliudesign/mono-color-skill --skill mono-color
Alternative
61.0K Stars
npx skills add mvanhorn/last30days-skill -g
Alternative
38.4K Stars
npx skills add Imbad0202/academic-research-skills
Alternative
28.0K Stars
npx skills add assafelovic/gpt-researcher
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill may drive a browser or interact with web pages.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/managedcode-maui-collectionview/install
Agent should check
Copy prompt
Task: Use maui-collectionview in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20maui-collectionview%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/managedcode-maui-collectionview/install
Install command: npx skills add managedcode/dotnet-skills --skill maui-collectionview
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/managedcode-maui-collectionview/install
LLM text format
/api/skills/managedcode-maui-collectionview/install?format=text
Find alternatives
/api/skills/search?q=maui-collectionview&limit=3
Agent prompt
Use maui-collectionview for this task. Review https://www.openagentskill.com/api/skills/managedcode-maui-collectionview/install, then install with: npx skills add managedcode/dotnet-skills --skill maui-collectionviewRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/managedcode-maui-collectionview
LLM text
/api/registry/manifest/managedcode-maui-collectionview?format=text
Install alias
/api/registry/install/managedcode-maui-collectionview
Recommend
/api/registry/recommend?task=Use%20maui-collectionview%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Shortlist this skill and compare it with close alternatives before production adoption.
Role in stack
Companion skill
Primary fit
Research agents
Trust label
Strong shortlist
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO477 GitHub stars
Stars/forks activity
CHECK477 stars, 33 forks; issue activity unavailable in current metadata
Recent maintenance
PASS5d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Alternative shortlist
Similar skills that may fit this task.
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
Academic Research Skills for Claude Code: research → write → review → revise → finalize
Run autonomous deep research over web and local sources
--- name: maui-collectionview description: > Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & grid), selection, grouping, scrolling, empty views, templates, incremental loading, swipe actions, and pull-to-refresh. USE FOR: "CollectionView", "list view", "grid layout", "data template", "item template", "grouping", "pull to refresh", "incremental loading", "swipe actions", "empty view", "selection mode", "scroll to item", displaying scrollable data, replacing ListView. DO NOT USE FOR: simple static layouts without scrollable data (use Grid or StackLayout), map pin lists (use Microsoft.Maui.Controls.Maps), table-based data entry forms, non-MAUI list controls, CarouselView or BindableLayout questions, platform-specific handler or renderer customization, diagnosing CollectionView bugs in the MAUI framework itself, or general MVVM/binding questions that merely happen to mention a list (use maui-data-binding). license: MIT ---
# CollectionView — .NET MAUI
`CollectionView` is the primary control for displaying scrollable lists and grids of data in .NET MAUI. It replaces `ListView` with better performance, flexible layouts, and no `ViewCell` requirement.
## When to Use
- Displaying a scrollable list or grid of data items - Binding a collection of objects to a templated item layout - Adding selection (single or multiple), grouping, or pull-to-refresh - Implementing infinite scroll / incremental loading - Showing swipe actions on list items - Displaying an empty state when no data is available
## When Not to Use
- Static layouts with a fixed number of items — use `Grid` or `StackLayout` directly - Map pin lists — use the `Microsoft.Maui.Controls.Maps` NuGet package - Table-based data entry forms — use standard form controls - Simple text-only lists with no interaction — consider `BindableLayout` on a `StackLayout`
## Scope Control — Answer Only What Was Asked
This skill is a **reference you consult**, not a checklist you apply. Most requests need one or two sections from it. Pulling in the rest makes the answer worse.
**Stop conditions — do NOT act when:**
- **The user asked a narrow question.** Answer that question only. Do not append grouping, swipe actions, empty views, snap points, or performance tips that were not asked about. - **The user's existing code already works.** Do not rewrite working markup to match the examples here. Point out a concrete defect; if there is none, say so and answer the question that was asked. - **The change is stylistic.** Renaming, reordering attributes, or restructuring a template that already behaves correctly is churn, not a fix. - **The control isn't `CollectionView`.** `CarouselView`, `BindableLayout`, and `ListView`-in-maintenance code have different rules. Do not rewrite `ListView` code the user did not ask about — but if they ask *which* control to use, or are migrating from Xamarin.Forms, recommend `CollectionView` (see [Migrating from ListView](#migrating-from-listview)). - **The problem is really a binding, DI, or navigation problem** that happens to involve a list — defer to `maui-data-binding`, `maui-dependency-injection`, or `maui-shell-navigation`.
**The API sections below are a reference, not a checklist — offer them only when relevant.** Four rules are non-negotiable, because violating them produces code that does not work or silently loses compile-time checking:
1. Never use `ViewCell` as a `DataTemplate` root in `CollectionView`. 2. Use `ObservableCollection<T>` when the list mutates after first render. 3. Mutate the bound collection on the UI thread. 4. Set `x:DataType` on every `DataTemplate` (and on the page root) for compiled bindings.
Everything else — sizing strategy, snap points, header/footer, empty views — is optional and should be offered only when it addresses the user's actual problem.
## Inputs
- A data source (typically `ObservableCollection<T>`) bound to `ItemsSource` - A `DataTemplate` defining how each item renders - Optional: layout configuration, selection mode, grouping model, empty view
## Basic Setup
A complete, copy-pasteable page. Two things are load-bearing: the `xmlns:models` declaration that every `x:DataType="models:Item"` in this skill assumes, and the **root `x:DataType`** — without it the outer `ItemsSource` binding is not compiled:
```xml <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:models="clr-namespace:MyApp.Models" xmlns:vm="clr-namespace:MyApp.ViewModels" x:DataType="vm:ItemsViewModel" x:Class="MyApp.ItemsPage"> <ContentPage.BindingContext> <vm:ItemsViewModel /> </ContentPage.BindingContext> <CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <HorizontalStackLayout Padding="8" Spacing="8"> <Image Source="{Binding Icon}" WidthRequest="40" HeightRequest="40" /> <Label Text="{Binding Name}" VerticalOptions="Center" /> </HorizontalStackLayout> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> </ContentPage> ```
Later snippets show only the `CollectionView` element. When you hand a snippet to a user, include the matching `xmlns:` declaration for any prefix it uses, or the XAML will not compile.
The inline `<ContentPage.BindingContext>` above keeps the example self-contained. In an app that uses dependency injection, register the ViewModel instead and assign it through constructor injection (`BindingContext = vm;`) — see the **maui-dependency-injection** skill.
**Key rules:**
- Bind `ItemsSource` to an `ObservableCollection<T>` so the UI updates on add/remove. - Each item template root must be a `Layout` or `View` — **never use `ViewCell`**. - Always set `x:DataType` on `DataTemplate` for compiled bindings.
## Layouts
Set `ItemsLayout` to control arrangement. Default is `VerticalList`.
| Layout | XAML value | |---|---| | Vertical list | `VerticalList` (default) | | Horizontal list | `HorizontalList` | | Vertical grid | `GridItemsLayout` with `Orientation="Vertical"` | | Horizontal grid | `GridItemsLayout` with `Orientation="Horizontal"` |
### Grid Layout
```xml <CollectionView ItemsSource="{Binding Items}"> <CollectionView.ItemsLayout> <GridItemsLayout Orientation="Vertical" Span="2" VerticalItemSpacing="8" HorizontalItemSpacing="8" /> </CollectionView.ItemsLayout> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <Border Padding="8" StrokeThickness="0"> <VerticalStackLayout> <Image Source="{Binding Image}" HeightRequest="120" Aspect="AspectFill" /> <Label Text="{Binding Name}" FontAttributes="Bold" /> </VerticalStackLayout> </Border> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> ```
### Horizontal List
```xml <CollectionView ItemsSource="{Binding Items}" ItemsLayout="HorizontalList" /> ```
## Selection
### Selection Mode
| Mode | Property to bind | Binding mode | |---|---|---| | `None` | — | — | | `Single` | `SelectedItem` | `TwoWay` | | `Multiple` | `SelectedItems` | `OneWay` |
```xml <CollectionView ItemsSource="{Binding Items}" SelectionMode="Single" SelectedItem="{Binding CurrentItem, Mode=TwoWay}" SelectionChangedCommand="{Binding ItemSelectedCommand}" /> ```
For `Multiple` selection, bind `SelectedItems` (type `IList<object>`):
```xml <CollectionView SelectionMode="Multiple" SelectedItems="{Binding ChosenItems, Mode=OneWay}" /> ```
### Selected Visual State
Highlight selected items using `VisualStateManager`:
```xml <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <Grid Padding="8"> <VisualStateManager.VisualStateGroups> <VisualStateGroup Name="CommonStates"> <VisualState Name="Normal"> <VisualState.Setters> <Setter Property="BackgroundColor" Value="Transparent" /> </VisualState.Setters> </VisualState> <VisualState Name="Selected"> <VisualState.Setters> <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource PrimaryDark}}" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Label Text="{Binding Name}" /> </Grid> </DataTemplate> </CollectionView.ItemTemplate> ```
## Grouping
1. Create a group class inheriting from `List<T>`:
```csharp public class AnimalGroup : List<Animal> { public string Name { get; } public AnimalGroup(string name, List<Animal> animals) : base(animals) { Name = name; } } ```
2. Bind to `ObservableCollection<AnimalGroup>` and set `IsGrouped="True"`:
```xml <CollectionView ItemsSource="{Binding AnimalGroups}" IsGrouped="True"> <CollectionView.GroupHeaderTemplate> <DataTemplate x:DataType="models:AnimalGroup"> <Label Text="{Binding Name}" FontAttributes="Bold" BackgroundColor="{StaticResource Gray100}" Padding="8" /> </DataTemplate> </CollectionView.GroupHeaderTemplate> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Animal"> <Label Text="{Binding Name}" Padding="16,4" /> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> ```
## Pull-to-Refresh
Wrap `CollectionView` in a `RefreshView`. Set `IsRefreshing` back to `false` when done:
```xml <RefreshView IsRefreshing="{Binding IsRefreshing}" Command="{Binding RefreshCommand}"> <CollectionView ItemsSource="{Binding Items}" /> </RefreshView> ```
## Incremental Loading (Infinite Scroll)
```xml <CollectionView ItemsSource="{Binding Items}" RemainingItemsThreshold="5" RemainingItemsThresholdReachedCommand="{Binding LoadMoreCommand}" /> ```
> ⚠️ **Do NOT use with non-virtualizing layouts.** `LinearItemsLayout` and `GridItemsLayout` support virtualization. Using `BindableLayout` on a `StackLayout` as an alternative to `CollectionView` has no virtualization, which triggers infinite threshold-reached events.
## SwipeView — Binding from Inside DataTemplate
Commands inside a `DataTemplate` can't directly reach your ViewModel. Use `RelativeSource AncestorType`:
```xml <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:Item"> <SwipeView> <SwipeView.RightItems> <SwipeItems> <SwipeItem Text="Delete" BackgroundColor="Red" Command="{Binding BindingContext.DeleteCommand, Source={RelativeSource AncestorType={x:Type ContentPage}}}" CommandParameter="{Binding}" /> </SwipeItems> </SwipeView.RightItems> <Grid Padding="8"> <Label Text="{Binding Name}" /> </Grid> </SwipeView> </DataTemplate> </CollectionView.ItemTemplate> ```
## EmptyView
Shown when `ItemsSource` is empty or null.
```xml <CollectionView ItemsSource="{Binding SearchResults}" EmptyView="No items found." /> ```
For a custom empty view, wrap in `ContentView`:
```xml <CollectionView ItemsSour
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for maui-collectionview, ready for a manual X post.
maui-collectionview: Guidance for implementing CollectionView in .NET MAUI apps — data display, layouts (list & gr... 477 stars https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=x
Listing + install path for maui-collectionview: https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=x Install: npx skills add managedcode/dotnet-skills --skill maui-collectionview
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to managedcode but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview/audit)
[](https://www.openagentskill.com/skills/managedcode-maui-collectionview?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)managedcode
@managedcode
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
mono-color
Generate original one-ink or controlled two-ink editorial images from any theme, sentence, article idea, object, or reference photo. Always use this skill when the user asks for 单色海报、双色印刷、单色调视觉、蓝色/绿色孔版印刷、risograph、网点照片、复古或当代编辑排版、zine poster, monochrome editorial poster, duotone print, or asks to use the mono-color style. It uses an adaptive white, gray, or pale-beige substrate, no more than two printing inks, active negative space, terse human language, and strong serif/grotesk/mono typography without making retro styling the default or copying a source composition, wording, logo, or artwork. Produce both the final generation prompt and the generated raster image unless the user explicitly asks for prompt only.
1.9K StarsLast30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
61.0K StarsAcademic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
38.4K StarsGPT Researcher
Run autonomous deep research over web and local sources
28.0K StarsPermission surface
shell or command execution, network or browser access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, network or browser access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, network or browser access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, network or browser access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness