Live XAML preview for .NET MAUI projects on Mac. Mirrors your running iOS Simulator or Android Emulator screen directly inside VS Code, with element inspection, style tracing, and source navigation. When no emulator is running, it renders an approximate design-time preview straight from your XAML - like the Visual Studio 2022 XAML designer.
Features
Live Preview: Real-time mirror of your iOS Simulator or Android Emulator inside VS Code
Design-Time Preview: Render XAML without running the app - no emulator needed
Element Inspection: Click any element to see its properties and styles
Source Navigation: Jump directly to element definitions, code-behind, and resource dictionaries
Element Tree: Browse your XAML hierarchy visually
Interactive Mode: Send clicks directly to your running device (Android)
Resource Resolution: Traces {StaticResource} and {AppThemeBinding} to their definitions
Prerequisites
For iOS Simulator
Xcode installed (comes with xcrun and simctl)
Your MAUI app running: dotnet run -f net9.0-ios
Verify with: xcrun simctl list devices booted
For Android Emulator
Android Studio installed with adb in your PATH
Your MAUI app running: dotnet run -f net9.0-android
Verify with: adb devices
Installation
Open VS Code
Go to Extensions panel (Cmd+Shift+X on Mac, Ctrl+Shift+X on Windows/Linux)
Search for "MAUI XAML Preview"
Click Install
Usage
Opening the Preview
Editor title bar: Click the 📱 icon when a .xaml file is open
Right-click a .xaml file in Explorer -> "MAUI: Open XAML Preview"
Command Palette (Cmd+Shift+P): type MAUI: Open XAML Preview