Skip to main content

uno-toolkit-csharp-markup

Use C# Markup with Uno Toolkit controls instead of XAML. Setup, NuGet packages, and fluent API patterns.

跳到安装

来源信息

仓库
unoplatform/studio
最近来源活动
2026年6月9日 19:39
检测到的 SKILL.md 语言
英语
星标
10
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
uno-toolkit-csharp-markup
description
Use C# Markup with Uno Toolkit controls instead of XAML. Setup, NuGet packages, and fluent API patterns.
when_to_use
Use when the project uses C# Markup instead of XAML and needs the Toolkit's fluent extension methods, setting up the `Uno.Toolkit.WinUI.Markup` NuGet package, applying Toolkit styles, extensions, and helpers in C# Markup, or converting existing XAML Toolkit usage to C# Markup.
metadata
{"author":"uno-platform","version":"2.4","category":"toolkit"}
# Uno Toolkit C# Markup — Agent Skill ## Workflow > **Docs lookup:** call `uno_platform_docs_search(...)` first, then `uno_platform_docs_fetch(sourcePath="…")` using the `sourcePath` field from a result (a relative `.md` path; add the result's `anchor` for a section). Never pass a URL, a `.html` link, or a hand-built path. ### Step 1: Fetch the C# Markup Toolkit Documentation ``` uno_platform_docs_search("Uno Toolkit C# Markup fluent API setup NuGet package") ``` Primary documentation pages: - **Toolkit C# Markup**: `external/uno.toolkit.ui/doc/getting-started.md` - **Material Toolkit C# Markup**: `external/uno.toolkit.ui/doc/material-getting-started.md` - **Chefs C# Markup Toolkit Tutorial**: `external/uno.extensions/doc/Learn/Markup/HowTo-CustomMarkupProject-Toolkit.md` Fetch the Chefs tutorial: ``` uno_platform_docs_fetch(sourcePath="external/uno.extensions/doc/Learn/Markup/HowTo-CustomMarkupProject-Toolkit.md") ``` ## Key Principles (Stable) - Add `Uno.Toolkit.WinUI.Markup` NuGet package - For Material: add `Uno.Toolkit.WinUI.Material.Markup` NuGet package - Fluent API: `new Card().Style(Theme.Card.Styles.Elevated)` - Same controls and helpers, expressed in C# instead of XAML ## Related Skills - [[uno-toolkit-getting-started]] — Base Toolkit setup - [[uno-themes-material]] — Material C# Markup
在 GitHub 查看