dotnet-ui
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesedotnet-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
主题路由表
| Topic | Keywords | Description | Companion File |
|---|---|---|---|
| Blazor patterns | hosting model, render mode, routing, streaming, prerender | Hosting models, render modes, routing, streaming, prerendering, AOT-safe patterns | references/blazor-patterns.md |
| Blazor components | lifecycle, state, JS interop, EditForm, QuickGrid | Lifecycle methods, state management, JS interop, EditForm, QuickGrid | references/blazor-components.md |
| Blazor auth | AuthorizeView, Identity UI, OIDC flows | Login/logout flows, AuthorizeView, Identity UI, OIDC, role and policy auth | references/blazor-auth.md |
| Blazor testing | bUnit, rendering, events, JS mocking | bUnit component rendering, events, cascading params, JS interop mocking | references/blazor-testing.md |
| MAUI development | project structure, XAML, MVVM, platform services | Project structure, XAML/MVVM patterns, Shell navigation, platform services | references/maui-development.md |
| MAUI AOT | iOS/Catalyst, Native AOT, trimming | iOS/Catalyst Native AOT pipeline, size/startup gains, library compatibility | references/maui-aot.md |
| MAUI testing | Appium, XHarness, platform validation | Appium 2.x device automation, XHarness, platform validation | references/maui-testing.md |
| Uno Platform | Extensions, MVUX, Toolkit, Hot Reload | Extensions ecosystem, MVUX pattern, Toolkit controls, Hot Reload | references/uno-platform.md |
| Uno targets | WASM, iOS, Android, macOS, Windows, Linux | Per-target guidance for WASM, iOS, Android, macOS, Windows, Linux | references/uno-targets.md |
| Uno MCP | tool detection, search-then-fetch, init | MCP tool detection, search-then-fetch workflow, init rules, fallback | references/uno-mcp.md |
| Uno testing | Playwright WASM, platform patterns | Playwright for WASM, platform-specific test patterns, runtime heads | references/uno-testing.md |
| WPF modern | Host builder, MVVM Toolkit, Fluent theme | Host builder, MVVM Toolkit, Fluent theme, performance, modern C# | references/wpf-modern.md |
| WPF migration | WPF/WinForms to .NET 8+, UWP to WinUI | WPF/WinForms to .NET 8+, UWP to WinUI, Upgrade Assistant | references/wpf-migration.md |
| WinUI | Windows App SDK, XAML, MSIX/unpackaged | Windows App SDK, x:Bind, x:Load, MSIX/unpackaged, UWP migration | references/winui.md |
| WinForms | high-DPI, dark mode, DI, modernization | High-DPI scaling, dark mode, DI patterns, modernization | references/winforms-basics.md |
| Accessibility | SemanticProperties, ARIA, AutomationPeer | SemanticProperties, ARIA attributes, AutomationPeer, per-platform testing | references/accessibility.md |
| Localization | .resx, IStringLocalizer, pluralization, RTL | .resx resources, IStringLocalizer, source generators, pluralization, RTL | references/localization.md |
| WinUI controls/styling | CommandBar, GridView, adaptive triggers, Mica, system brushes, icons | WinUI control selection, adaptive layout, theming, materials, typography | references/winui-controls-styling.md |
| UI chooser | framework selection decision tree | Decision tree across Blazor, MAUI, Uno, WinUI, WPF, WinForms | references/ui-chooser.md |
| Platform bindings | Java.Interop, ObjCRuntime, Android AAR, iOS XCFramework, Slim Binding | Custom native SDK bindings for Android and Apple platforms | references/platform-bindings.md |
| 主题 | 关键词 | 描述 | 配套文件 |
|---|---|---|---|
| Blazor模式 | 托管模型, 渲染模式, 路由, 流式传输, 预渲染 | 托管模型、渲染模式、路由、流式传输、预渲染、AOT安全模式 | references/blazor-patterns.md |
| Blazor组件 | 生命周期, 状态管理, JS互操作, EditForm, QuickGrid | 生命周期方法、状态管理、JS互操作、EditForm、QuickGrid | references/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 AOT | iOS/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, Linux | WASM、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迁移至WinUI | WPF/WinForms迁移至.NET 8+、UWP迁移至WinUI、升级助手 | references/wpf-migration.md |
| WinUI | Windows 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, AutomationPeer | SemanticProperties、ARIA属性、AutomationPeer、各平台测试 | references/accessibility.md |
| 本地化 | .resx, IStringLocalizer, 复数处理, RTL | .resx资源、IStringLocalizer、源代码生成器、复数处理、RTL | references/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 Binding | Android与苹果平台的自定义原生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]