dotnet:maui-patterns

Orchestrate .NET MAUI patterns for MVVM, shell navigation, and dependency injection.

2|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/dimsour/dotnet-ai-toolkit --skill dotnet-maui-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet:maui-patterns
Source: https://github.com/dimsour/dotnet-ai-toolkit/tree/main/plugins/dotnet/skills/maui-patterns
Command: npx skills add https://github.com/dimsour/dotnet-ai-toolkit --skill dotnet-maui-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexity of .NET MAUI development by providing pre-defined patterns and guidance for common scenarios such as MVVM architecture, navigation, and platform-specific services.

Core Features & Use Cases

  • MVVM Architecture: Offers guidance on structuring applications using the MVVM pattern with CommunityToolkit.Mvvm.
  • Shell Navigation: Provides a shell for creating navigable user interfaces.
  • Dependency Injection: Demonstrates setting up and using dependency injection for services like photo picking.
  • Platform Services: Includes platform-specific code for Android and iOS to access services such as photo picking.
  • Use Case: If you are developing a .NET MAUI application and want to implement a user interface with navigation, this Skill can help you get started quickly.

Quick Start

Load and run the skill to view the reference documentation for .NET MAUI patterns and best practices.

Frequently Asked Questions about dotnet:maui-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement MVVM architecture in .NET MAUI?

Implement MVVM architecture in .NET MAUI by structuring applications with the CommunityToolkit.Mvvm library. This approach separates UI logic from business logic, providing pre-defined patterns and boilerplate code to streamline cross-platform UI development efficiently.

How do I set up shell navigation in a .NET MAUI application?

Set up shell navigation in .NET MAUI by using the built-in shell framework to create navigable user interfaces. This pattern routes users between pages efficiently, reducing navigation boilerplate while maintaining a structured cross-platform UI hierarchy.

How do I use dependency injection for platform-specific services in .NET MAUI?

Use dependency injection in .NET MAUI by registering platform-specific implementations like photo picking services in a shared container. This allows cross-platform code to resolve Android and iOS specific services dynamically at runtime without direct platform references.

What is the best way to access platform services like photo picking in .NET MAUI?

Access platform services like photo picking in .NET MAUI by using dependency injection to inject platform-specific code for Android and iOS. This pattern abstracts native functionality behind a shared interface, allowing cross-platform UI to invoke device features seamlessly.

Do I need any specific dependencies to use these .NET MAUI patterns?

You need the CommunityToolkit.Mvvm library to properly implement the MVVM architecture patterns. The Skill's components include scripts and references that provide architectural guidance and boilerplate code for setting up shell navigation and dependency injection.

Can I use these .NET MAUI patterns for cross-platform UI development on both Android and iOS?

Yes, these .NET MAUI patterns target cross-platform UI development on both Android and iOS. The included platform services offer specific boilerplate code for accessing native features like photo picking, ensuring applications run seamlessly across multiple platforms.