dotnet-ui

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

dotnet-ui

.NET UI开发

Overview

概述

.NET UI development across Blazor, MAUI, Uno Platform, WPF, WinUI 3, and WinForms. This skill covers framework selection, component architecture, XAML patterns, MVVM, platform-specific deployment, accessibility, and localization. Each framework area has a dedicated companion file with deep guidance.
涵盖Blazor、MAUI、Uno Platform、WPF、WinUI 3和WinForms的.NET UI开发。本技能包含框架选型、组件架构、XAML模式、MVVM、平台特定部署、无障碍访问和本地化等内容。每个框架领域都有对应的配套文件提供深度指导。

Routing Table

主题路由表

TopicKeywordsDescriptionCompanion File
Blazor patternshosting model, render mode, routing, streaming, prerenderHosting models, render modes, routing, streaming, prerendering, AOT-safe patternsreferences/blazor-patterns.md
Blazor componentslifecycle, state, JS interop, EditForm, QuickGridLifecycle methods, state management, JS interop, EditForm, QuickGridreferences/blazor-components.md
Blazor authAuthorizeView, Identity UI, OIDC flowsLogin/logout flows, AuthorizeView, Identity UI, OIDC, role and policy authreferences/blazor-auth.md
Blazor testingbUnit, rendering, events, JS mockingbUnit component rendering, events, cascading params, JS interop mockingreferences/blazor-testing.md
MAUI developmentproject structure, XAML, MVVM, platform servicesProject structure, XAML/MVVM patterns, Shell navigation, platform servicesreferences/maui-development.md
MAUI AOTiOS/Catalyst, Native AOT, trimmingiOS/Catalyst Native AOT pipeline, size/startup gains, library compatibilityreferences/maui-aot.md
MAUI testingAppium, XHarness, platform validationAppium 2.x device automation, XHarness, platform validationreferences/maui-testing.md
Uno PlatformExtensions, MVUX, Toolkit, Hot ReloadExtensions ecosystem, MVUX pattern, Toolkit controls, Hot Reloadreferences/uno-platform.md
Uno targetsWASM, iOS, Android, macOS, Windows, LinuxPer-target guidance for WASM, iOS, Android, macOS, Windows, Linuxreferences/uno-targets.md
Uno MCPtool detection, search-then-fetch, initMCP tool detection, search-then-fetch workflow, init rules, fallbackreferences/uno-mcp.md
Uno testingPlaywright WASM, platform patternsPlaywright for WASM, platform-specific test patterns, runtime headsreferences/uno-testing.md
WPF modernHost builder, MVVM Toolkit, Fluent themeHost builder, MVVM Toolkit, Fluent theme, performance, modern C#references/wpf-modern.md
WPF migrationWPF/WinForms to .NET 8+, UWP to WinUIWPF/WinForms to .NET 8+, UWP to WinUI, Upgrade Assistantreferences/wpf-migration.md
WinUIWindows App SDK, XAML, MSIX/unpackagedWindows App SDK, x:Bind, x:Load, MSIX/unpackaged, UWP migrationreferences/winui.md
WinFormshigh-DPI, dark mode, DI, modernizationHigh-DPI scaling, dark mode, DI patterns, modernizationreferences/winforms-basics.md
AccessibilitySemanticProperties, ARIA, AutomationPeerSemanticProperties, ARIA attributes, AutomationPeer, per-platform testingreferences/accessibility.md
Localization.resx, IStringLocalizer, pluralization, RTL.resx resources, IStringLocalizer, source generators, pluralization, RTLreferences/localization.md
WinUI controls/stylingCommandBar, GridView, adaptive triggers, Mica, system brushes, iconsWinUI control selection, adaptive layout, theming, materials, typographyreferences/winui-controls-styling.md
UI chooserframework selection decision treeDecision tree across Blazor, MAUI, Uno, WinUI, WPF, WinFormsreferences/ui-chooser.md
Platform bindingsJava.Interop, ObjCRuntime, Android AAR, iOS XCFramework, Slim BindingCustom native SDK bindings for Android and Apple platformsreferences/platform-bindings.md
主题关键词描述配套文件
Blazor模式托管模型, 渲染模式, 路由, 流式传输, 预渲染托管模型、渲染模式、路由、流式传输、预渲染、AOT安全模式references/blazor-patterns.md
Blazor组件生命周期, 状态管理, JS互操作, EditForm, QuickGrid生命周期方法、状态管理、JS互操作、EditForm、QuickGridreferences/blazor-components.md
Blazor身份验证AuthorizeView, Identity UI, OIDC流程登录/登出流程、AuthorizeView、Identity UI、OIDC、角色与策略验证references/blazor-auth.md
Blazor测试bUnit, 渲染, 事件, JS模拟bUnit组件渲染、事件、级联参数、JS互操作模拟references/blazor-testing.md
MAUI开发项目结构, XAML, MVVM, 平台服务项目结构、XAML/MVVM模式、Shell导航、平台服务references/maui-development.md
MAUI Native AOTiOS/Catalyst, Native AOT, 裁剪iOS/Catalyst Native AOT流水线、体积/启动速度优化、库兼容性references/maui-aot.md
MAUI测试Appium, XHarness, 平台验证Appium 2.x设备自动化、XHarness、平台验证references/maui-testing.md
Uno Platform扩展, MVUX, 工具包, 热重载扩展生态系统、MVUX模式、工具包控件、热重载references/uno-platform.md
Uno目标平台WASM, iOS, Android, macOS, Windows, LinuxWASM、iOS、Android、macOS、Windows、Linux各平台专属指导references/uno-targets.md
Uno MCP工具检测, 先搜索再获取, 初始化MCP工具检测、先搜索再获取工作流、初始化规则、回退方案references/uno-mcp.md
Uno测试Playwright WASM, 平台模式Playwright for WASM、平台特定测试模式、运行时宿主references/uno-testing.md
现代WPF宿主构建器, MVVM工具包, Fluent主题宿主构建器、MVVM工具包、Fluent主题、性能优化、现代C#references/wpf-modern.md
WPF迁移WPF/WinForms迁移至.NET 8+, UWP迁移至WinUIWPF/WinForms迁移至.NET 8+、UWP迁移至WinUI、升级助手references/wpf-migration.md
WinUIWindows App SDK, XAML, MSIX/非打包应用Windows App SDK、x:Bind、x:Load、MSIX/非打包应用、UWP迁移references/winui.md
WinForms高DPI, 深色模式, 依赖注入, 现代化高DPI缩放、深色模式、依赖注入模式、现代化改造references/winforms-basics.md
无障碍访问SemanticProperties, ARIA, AutomationPeerSemanticProperties、ARIA属性、AutomationPeer、各平台测试references/accessibility.md
本地化.resx, IStringLocalizer, 复数处理, RTL.resx资源、IStringLocalizer、源代码生成器、复数处理、RTLreferences/localization.md
WinUI控件/样式CommandBar, GridView, 自适应触发器, Mica, 系统画笔, 图标WinUI控件选型、自适应布局、主题定制、材质设计、排版references/winui-controls-styling.md
UI框架选型器框架选型决策树Blazor、MAUI、Uno、WinUI、WPF、WinForms的选型决策树references/ui-chooser.md
平台绑定Java.Interop, ObjCRuntime, Android AAR, iOS XCFramework, Slim BindingAndroid与苹果平台的自定义原生SDK绑定references/platform-bindings.md

Scope

适用范围

  • Blazor (Server, WASM, Hybrid, Auto) hosting models and components
  • MAUI mobile/desktop development and Native AOT
  • Uno Platform cross-platform development and MCP integration
  • WPF on .NET 8+ and migration from .NET Framework
  • WinUI 3 / Windows App SDK
  • WinForms modernization (high-DPI, dark mode, DI)
  • Accessibility across all UI frameworks
  • Localization (.resx, IStringLocalizer, pluralization, RTL)
  • UI framework selection decision tree
  • Blazor(Server、WASM、Hybrid、Auto)托管模型与组件
  • MAUI移动/桌面开发与Native AOT
  • Uno Platform跨平台开发与MCP集成
  • .NET 8+上的WPF及从.NET Framework迁移
  • WinUI 3 / Windows App SDK
  • WinForms现代化改造(高DPI、深色模式、依赖注入)
  • 所有UI框架的无障碍访问
  • 本地化(.resx、IStringLocalizer、复数处理、RTL)
  • UI框架选型决策树

Out of scope

不适用范围

  • Server-side auth middleware and API security configuration -- see [skill:dotnet-api]
  • Non-UI testing strategy (unit, integration, E2E architecture) -- see [skill:dotnet-testing]
  • Cross-framework UI test patterns (page objects, selectors) -- see [skill:dotnet-testing]
  • Playwright browser automation (non-framework-specific) -- see [skill:dotnet-testing]
  • Backend API patterns and architecture -- see [skill:dotnet-api]
  • Native AOT compilation (non-MAUI) -- see [skill:dotnet-tooling]
  • Console UI (Terminal.Gui, Spectre.Console) -- see [skill:dotnet-tooling]
  • 服务端身份验证中间件与API安全配置——请查看[skill:dotnet-api]
  • 非UI测试策略(单元测试、集成测试、端到端架构)——请查看[skill:dotnet-testing]
  • 跨框架UI测试模式(页面对象、选择器)——请查看[skill:dotnet-testing]
  • Playwright浏览器自动化(非框架专属)——请查看[skill:dotnet-testing]
  • 后端API模式与架构——请查看[skill:dotnet-api]
  • Native AOT编译(非MAUI场景)——请查看[skill:dotnet-tooling]
  • 控制台UI(Terminal.Gui、Spectre.Console)——请查看[skill:dotnet-tooling]