Fix .NET MAUI UI layout, state, and automation issues: CollectionView not scrolling, DataTemplate binding problems, command binding back to page view models, Grid/FlexLayout responsive sizing, and binding-driven states. USE FOR: Auto vs Star Grid rows, avoiding ScrollView parents around CollectionView, rejecting HeightRequest fixes, replacing BindableLayout for large lists, stable AutomationIds, x:DataType item templates, RelativeSource AncestorType command bindings, EmptyView/loading/error states, responsive resources, and UI property bindings. DO NOT USE FOR: Shell routes, full accessibility audits, or vendor-specific controls.
$npx -y skills add dotnet/maui-labs --skill maui-ui-patternsInstalls into the current project.
Run `npx skills use "https://github.com/dotnet/maui-labs" --skill "dotnet/maui-labs/maui-ui-patterns"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/dotnet/maui-labs" that are relevant to the current task. Run `npx skills add "https://github.com/dotnet/maui-labs"` and select the relevant skills, then follow their instructions.