maui-performance

Optimize .NET MAUI app performance with profiling, binding, and layout tuning.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/mkazimoto/AppMAUICopilot --skill maui-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: maui-performance
Source: https://github.com/mkazimoto/AppMAUICopilot/tree/main/.github/skills/maui-performance
Command: npx skills add https://github.com/mkazimoto/AppMAUICopilot --skill maui-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Improve .NET MAUI app performance through profiling, binding optimization, and layout tuning to create faster, more responsive experiences.

Core Features & Use Cases

  • Profiling guidance: use dotnet-trace, PerfView, and related tools to identify bottlenecks and measure improvements.
  • Compiled bindings and patterns: ensure x:DataType is used and highlight how compiled bindings outperform reflection-based bindings, especially with trimming.
  • Layout and rendering tips: optimize layout hierarchies, grid usage, and virtualization for smoother UI.
  • Image and resource optimization: advise on image sizing, caching, and platform-specific formats.
  • Startup and trimming: recommended approaches to minimize startup work and enable IL trimming.
  • NativeAOT configuration: guidance on ahead-of-time compilation for improved startup performance.
  • Use cases: scenarios like onboarding flows or image-heavy screens where profiling yields tangible gains.

Quick Start

Run a profiling pass on your MAUI app and apply the compiled-bindings and layout optimizations described above.

Frequently Asked Questions about maui-performance

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

FAQPage Schema
How do I improve .NET MAUI app performance?

Improve .NET MAUI app performance by profiling with dotnet-trace or PerfView to identify bottlenecks, then applying compiled bindings, layout hierarchy optimization, and IL trimming to reduce startup time and increase UI responsiveness.

What's the best way to profile MAUI app startup time and UI responsiveness?

The best way to profile MAUI apps is using dotnet-trace and PerfView to measure startup work and UI responsiveness, allowing you to pinpoint exact bottlenecks before applying layout tuning and NativeAOT configuration.

How do compiled bindings work in .NET MAUI?

Compiled bindings in .NET MAUI work by using x:DataType to generate direct property access at compile time, which outperforms reflection-based bindings and ensures better compatibility with IL trimming.

How do I optimize layout hierarchies for smoother MAUI UI rendering?

Optimize MAUI layout hierarchies by simplifying grid usage, reducing nested layouts, and enabling virtualization for image-heavy screens, which minimizes rendering calculations and creates smoother UI scrolling.

Does NativeAOT configuration work with MAUI trimming scenarios?

NativeAOT configuration works alongside MAUI trimming scenarios by enabling ahead-of-time compilation, which minimizes startup work and improves startup performance while requiring compiled bindings to avoid reflection trimming issues.

Why does my MAUI app run slowly on image-heavy screens?

MAUI apps run slowly on image-heavy screens due to unoptimized image sizing, lack of caching, and deep layout hierarchies, which you can resolve by applying platform-specific image formats and layout virtualization.