From cdeee11700180d74ae115022bed69ad32ff1ebf7 Mon Sep 17 00:00:00 2001 From: umanagarajan12 Date: Fri, 15 May 2026 20:54:47 +0530 Subject: [PATCH 1/4] Updated wpf UG skills --- wpf-toc.html | 9 +-- ...{component-skills.md => control-skills.md} | 34 ++++----- ...omposer-skills.md => ui-composer-skill.md} | 74 ++++++++++--------- 3 files changed, 60 insertions(+), 57 deletions(-) rename wpf/skills/{component-skills.md => control-skills.md} (77%) rename wpf/skills/{ui-composer-skills.md => ui-composer-skill.md} (58%) diff --git a/wpf-toc.html b/wpf-toc.html index bf7f38fb67..5065b50e96 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -3,12 +3,9 @@
  • API Reference
  • -
  • Skills - -
  • +
  • + Skills +
  • Overview
  • diff --git a/wpf/skills/component-skills.md b/wpf/skills/control-skills.md similarity index 77% rename from wpf/skills/component-skills.md rename to wpf/skills/control-skills.md index e60f3c7879..d438921d98 100644 --- a/wpf/skills/component-skills.md +++ b/wpf/skills/control-skills.md @@ -1,7 +1,7 @@ --- layout: post title: Syncfusion WPF Agent Skills for AI Assistants | Syncfusion -description: Learn how to install and use Syncfusion Agent Skills to enhance AI assistants with accurate Syncfusion WPF component guidance. +description: Learn how to install and use Syncfusion Agent Skills to enhance AI assistants with accurate Syncfusion WPF control guidance. control: Skills platform: wpf documentation: ug @@ -12,41 +12,41 @@ domainurl: ##DomainURL## This guide introduces **Syncfusion WPF Skills**, a knowledge package that enables AI assistants (VS Code, Cursor, CodeStudio, etc.) to understand and generate accurate WPF code using official APIs, patterns, and theming guidelines. -These skills eliminate common issues with generic AI suggestions by grounding the assistant in accurate component usage patterns, API structures, supported features, and project‑specific configuration. +These skills eliminate common issues with generic AI suggestions by grounding the assistant in accurate control usage patterns, API structures, supported features, and project‑specific configuration. ## Prerequisites Before installing Syncfusion® WPF Agent Skills, ensure the following: -- Required [Node.js](https://nodejs.org/en/) version >= 16 +- Required [.NET SDK](https://dotnet.microsoft.com/en-us/download) version >= 6 - WPF application (existing or new); see [Overview](https://help.syncfusion.com/wpf/welcome-to-syncfusion-essential-wpf) - A supported AI agent or IDE that integrates with the Skills CLI (VS Code, Syncfusion® Code Studio, Cursor, etc.) ## Key Benefits -**Component Usage & API Knowledge** -- Accurate guidance for adding and configuring Syncfusion® WPF components +**Control Usage & API Knowledge** +- Accurate guidance for adding and configuring Syncfusion® WPF controls - Component‑specific props, events, and required feature modules - Guidance for injecting services/modules (where applicable) **Patterns & Best Practices** - Recommended API structures and composition patterns -- State‑handling approaches for common scenarios +- Event handling and XAML binding approaches for common scenarios - Feature‑injection workflows (for example, paging, sorting, filtering) - All guidance is authored directly in Skill files and does not rely on external documentation fetches **Design‑System Guidance** -- Theme usage, including light and dark variants -- Styling and icon usage patterns -- Consistent design alignment across Syncfusion® WPF components +- WPF theme support including modern themes (FluentLight, FluentDark, Material3Light, Material3Dark, Windows11Light, Windows11Dark) and classic themes (Office2019Colorful, Office2019Black, Office2019White) +- Styling and ResourceDictionary usage patterns for theme integration +- Consistent design alignment across Syncfusion® WPF controls ## Installation -Install [Syncfusion® WPF components skills](https://github.com/syncfusion/wpf-ui-components-skills.git) using the Skills CLI. Users can also explore available skills from the [marketplace](https://www.skills.sh/syncfusion/). +Install [Syncfusion® WPF controls skills](https://github.com/syncfusion/wpf-ui-components-skills.git) using the Skills CLI. Users can also explore available skills from the [marketplace](https://www.skills.sh/syncfusion/). ### Install all skills -Use the following command to install all component skills at once in the `.agents/skills` directory: +Use the following command to install all control skills at once in the `.agents/skills` directory: {% tabs %} {% highlight bash tabtitle="NPM" %} @@ -124,11 +124,11 @@ To learn more about the Skills CLI, refer [here](https://www.skills.sh/docs). ## How Syncfusion® Agent Skills Work -1. **Reads relevant Skill files based on queries**, retrieving component usage patterns, APIs, and best‑practice guidance from installed Syncfusion® Skills. The assistant initially loads only skill names and descriptions, then dynamically loads the required skill and reference files as needed to provide accurate Syncfusion guidance. +1. **Reads relevant Skill files based on queries**, retrieving control usage patterns, APIs, and best‑practice guidance from installed Syncfusion® Skills. The assistant initially loads only skill names and descriptions, then dynamically loads the required skill and reference files as needed to provide accurate Syncfusion guidance. 2. **Enforces Syncfusion® best practices**, including: - - Using the required feature modules for each component. - - Injecting applicable component modules (for example, paging, sorting, filtering, and other feature modules). + - Using the required feature modules for each control. + - Injecting applicable control modules (for example, paging, sorting, filtering, and other feature modules). - Adding the correct theme and style imports. 3. **Generates component‑accurate code**, avoiding invalid props or unsupported patterns. @@ -136,9 +136,9 @@ To learn more about the Skills CLI, refer [here](https://www.skills.sh/docs). Once skills are installed, the assistant can be used to generate and update Syncfusion® WPF code for tasks such as: -- “Add a DataGrid with paging, sorting, and filtering.” -- “Create a chart with 3 line series and enable data labels and legends.” -- “Apply Windows 11 light theme." +- "Add a DataGrid with paging, sorting, and filtering features." +- "Create a Bar chart with multiple series and enable data labels." +- "Apply the FluentLight theme to all Syncfusion controls using SfSkinManager." ## Skills CLI Commands diff --git a/wpf/skills/ui-composer-skills.md b/wpf/skills/ui-composer-skill.md similarity index 58% rename from wpf/skills/ui-composer-skills.md rename to wpf/skills/ui-composer-skill.md index ce6f841bab..cef1d654d3 100644 --- a/wpf/skills/ui-composer-skills.md +++ b/wpf/skills/ui-composer-skill.md @@ -1,7 +1,7 @@ --- layout: post title: Syncfusion® WPF UI Composer Skill for AI Assistants | Syncfusion® -description: Install Syncfusion® WPF UI Composer to generate production-ready WPF components from natural-language prompts. +description: Install Syncfusion® WPF UI Composer to generate production-ready WPF controls from natural-language prompts. control: Skills platform: wpf documentation: ug @@ -10,9 +10,9 @@ domainurl: ##DomainURL## # Syncfusion® WPF UI Composer Skill for AI Assistants -**Syncfusion® WPF UI Composer** is an AI-powered skill and companion agent that accelerates WPF application development by transforming natural-language UI requirements into production-ready components using Syncfusion® WPF libraries. +**Syncfusion® WPF UI Composer** is an AI-powered skill and companion agent that accelerates WPF application development by transforming natural-language UI requirements into production-ready controls using Syncfusion® WPF libraries. -Integrated with your AI-powered IDE, it leverages deep knowledge of **Syncfusion® components** to deliver accurate and ready-to-use code. +Integrated with your AI-powered IDE, it leverages deep knowledge of **Syncfusion® controls** to deliver accurate and ready-to-use code. By combining intelligent code generation with best practices, accessibility standards, and design-system consistency, WPF UI Composer helps you rapidly build scalable dashboards and user interfaces without leaving your development workflow. ## Prerequisites @@ -32,27 +32,27 @@ Before installing WPF UI Composer, ensure the following: ### **AI-Driven UI Generation** - Converts prompts into complete WPF components—not just snippets -- Automatically selects appropriate Syncfusion® components and features +- Automatically selects appropriate Syncfusion® controls and features - Produces structured, maintainable code -### **Component Usage & API Accuracy** -- Uses correct Syncfusion® component APIs +### **Control Usage & API Accuracy** +- Uses correct Syncfusion® control APIs - Injects required feature modules (paging, sorting, filtering, etc.) - Avoids unsupported or deprecated patterns ### **Patterns & Best Practices** -- Recommended component composition and state management +- Recommended control composition and state management - Event handling aligned with WPF standards - Secure and scalable coding patterns ### **Accessibility & Responsiveness** -- WCAG 2.1 AA–aligned output -- Semantic markup with accessibility support -- Responsive layouts for desktop applications +- Windows accessibility guidelines (UIA) and narrator support +- Well-structured XAML markup with proper control hierarchy +- DPI awareness and high-resolution display support ### **Design-System Integration** -- Supports built-in Syncfusion® WPF themes -- Ensures consistent Syncfusion® styling and theme usage +- Supports Syncfusion® WPF themes including FluentLight/Dark, Material3Light/Dark, Windows11Light/Dark, and Office2019 variants +- Ensures consistent Syncfusion® styling, theme usage, and ResourceDictionary configuration ## Installation @@ -73,27 +73,22 @@ Use the APM CLI to install the WPF UI Composer skill for your preferred environm {% tabs %} {% highlight bash tabtitle="Copilot" %} -// By default, it installs to the GitHub Copilot target - -apm install Syncfusion/wpf-ui-composer +apm install syncfusion/wpf-ui-composer -t copilot {% endhighlight %} {% highlight bash tabtitle="Cursor" %} -apm install Syncfusion/wpf-ui-composer -t cursor +apm install syncfusion/wpf-ui-composer -t cursor {% endhighlight %} {% highlight bash tabtitle="Code Studio" %} -// For Code Studio, refer to the note below to configure the agent location explicitly to use it in the chat. - -apm install Syncfusion/wpf-ui-composer - +apm install syncfusion/wpf-ui-composer -t copilot {% endhighlight %} {% highlight bash tabtitle="Claude" %} -apm install Syncfusion/wpf-ui-composer -t claude +apm install syncfusion/wpf-ui-composer -t claude {% endhighlight %} {% endtabs %} @@ -109,24 +104,24 @@ For details on supported deployment targets, refer to the [documentation](https: ## How the Syncfusion® WPF UI Composer Skill Works -1. **Intent Analysis** — Parse the user's prompt to identify component types and high-level layout intent. +1. **Intent Analysis** — Parse the user's prompt to identify control types and high-level layout intent. 2. **Project Detection** — Automatically detects project framework and existing themes. -3. **Component Mapping** — Map intent to Syncfusion® components and required feature modules. +3. **Control Mapping** — Map intent to Syncfusion® controls and required feature modules. 4. **Theming & Design System** Load required theming guidelines and confirm key design choices: - - Syncfusion theme (Fluent, Material3, etc.) + - Syncfusion® WPF theme (FluentLight, FluentDark, Material3Light, Material3Dark, Windows11Light, Windows11Dark, Office2019 variants) - Core design basics (colors, spacing, typography, accessibility) -5. **Code Generation** — Produce WPF XAML components, data bindings, and styling. +5. **Code Generation** — Produce WPF XAML controls, data bindings, and styling. 6. **Dependency Management** — Recommend or install required Syncfusion® packages and peer dependencies. 7. **Validation** — Run accessibility and basic security checks, request confirmation for changes. 8. **Code Insertion** — Create files or patch existing files following project structure and conventions. Key enforcement points: -- Adds correct theme and styles for chosen Syncfusion® themes -- Injects only the feature modules required by generated components -- Generates semantic markup with accessibility support -- Avoids unsupported or deprecated API usages for Syncfusion® components +- Adds correct theme resources and ResourceDictionary configuration for chosen Syncfusion® themes +- Injects only the feature modules required by generated controls +- Generates well-structured XAML with proper accessibility support (UIA and narrator) +- Avoids unsupported or deprecated API usages for Syncfusion® controls > The assistant handles most stages automatically and may request confirmation where required. @@ -148,14 +143,25 @@ Examples Prompts: {% promptcards %} {% promptcard Authentication %} -Create a login page with the Tailwind 3 theme using a centered card layout containing email and password input fields with validation. Include a "Remember Me" checkbox, a forgot password link, and a primary login button. Add a secondary "Create Account" button below. Ensure the layout is responsive and works on mobile, tablet, and desktop. +Create a login window with the FluentLight theme using a centered StackPanel containing TextBox controls for email and password with validation. Include a CheckBox for "Remember Me", a Hyperlink for "Forgot Password?", and a primary Button for login. Add a secondary Button for "Create Account" below. Use proper XAML binding and command patterns. {% endpromptcard %} {% promptcard Admin Dashboard %} -Create a CMS Admin Dashboard UI featuring a collapsible sidebar with navigation items for Dashboard, Content, Users, Analytics, and Settings; a top header (AppBar) showing the title “CMS Admin Dashboard” on the left and a user name with profile icon on the right; and a main content area that includes three compact summary cards in a single row displaying Total Content, Total Users, and Active Sessions (each card showing a label, relevant icon, prominent count value, and percentage change from last month), followed by a “Content Management” section with a filterable and data grid containing columns for Title, Author, Status, Date, and Actions (with edit and delete buttons), and finally two charts displayed side by side—a bar chart titled “Content Over Time” and a donut chart titled “Content by Category”—using realistic sample data for both the grid (10–12 rows) and the charts. +Create a CMS Admin Dashboard UI featuring a collapsible NavigationView with items for Dashboard, Content, Users, Analytics, and Settings; a CommandBar header showing the title "CMS Admin Dashboard" with a user profile section; and a main content area with a Grid layout including three compact summary cards displaying Total Content, Total Users, and Active Sessions (each with label, icon, count value, and percentage change), followed by a "Content Management" section with a DataGrid with columns for Title, Author, Status, Date, and Actions (with Edit and Delete buttons), and finally two charts displayed side by side—a Bar chart titled "Content Over Time" and a Pie chart titled "Content by Category"—using realistic sample data. {% endpromptcard %} {% endpromptcards %} -Generated code follows best practices with accessible, semantic HTML, responsive mobile-first layouts, strong TypeScript typing, and built-in security measures such as input validation and avoidance of hardcoded secrets. +Generated code follows best practices with well-structured XAML markup, proper event wiring and binding setup, strong C# typing, DPI awareness, and built-in security measures such as input validation and safe data handling. + +## Best Practices + +Follow these guidelines to get the most out of UI Composer and ensure high-quality production-ready result: + +- **Stay consistent** — Maintain consistent naming conventions (PascalCase for classes, camelCase for variables), control hierarchies, and XAML patterns throughout your project. +- **Use advanced AI models** — For best results, use **Claude Sonnet 4.6 or higher** capability models to produce better code quality and more accurate implementations. +- **Visual Studio designer testing** — Generated XAML code should be compatible with Visual Studio designer; validate layouts visually and ensure proper control initialization. +- **Accessibility validation** — Test generated controls with Windows Narrator and Inspect tool (UIA) to ensure full accessibility support for keyboard navigation and screen readers. +- **DPI awareness** — Test on high-resolution displays and ensure all controls scale properly and maintain visual fidelity. +- **Review all content and assets before production** — Validate the logic, security, and compatibility with your existing code and Syncfusion® licensing before deployment. ## Troubleshooting @@ -163,7 +169,7 @@ Generated code follows best practices with accessible, semantic HTML, responsive - **Skills not loading**: Ensure the **.agent/** and **.github/agents/** folders exist in your project and that the skill was installed successfully using APM. Verify that the correct agent is selected from the Agent dropdown in your IDE. -- **Component not rendering**: Retry generation using the specific component skill to resolve the issue, and ensure required Syncfusion® packages and themes are properly configured. +- **Control not rendering**: Retry generation using the specific control skill to resolve the issue, and ensure required Syncfusion® packages and themes are properly configured. - **Syncfusion license banner appears**: Use the licensing skill to correctly register and validate your Syncfusion® license key in the application. @@ -177,7 +183,7 @@ Any Skills-compatible agent that reads local skill files (Code Studio, VS Code, Yes. Supported agents automatically load relevant skills based on your query. **Can I customize the generated styles?** -Yes — the generated WPF components include clear integration points for style adjustments. +Yes — the generated WPF controls include clear integration points for style adjustments. **Does it modify files automatically?** The skill proposes changes and requires confirmation for insertion; automatic dependency installation may be offered depending on agent permissions. From fc3df69887be987bb15eab11751f1f333df03a91 Mon Sep 17 00:00:00 2001 From: umanagarajan12 Date: Fri, 15 May 2026 21:09:51 +0530 Subject: [PATCH 2/4] updated corrections --- wpf/skills/ui-composer-skill.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpf/skills/ui-composer-skill.md b/wpf/skills/ui-composer-skill.md index cef1d654d3..4825d18571 100644 --- a/wpf/skills/ui-composer-skill.md +++ b/wpf/skills/ui-composer-skill.md @@ -98,9 +98,9 @@ After installation, the following artifacts are added to your project for the Gi - `.agent/skills/` – contains the skill files - `.github/agents/` – contains the agent configuration -For details on supported deployment targets, refer to the [documentation](https://microsoft.github.io/apm/reference/cli-commands/#apm-targets---show-resolved-deployment-targets). +Refer to the [documentation](https://microsoft.github.io/apm/reference/cli/targets/#detection-signals) for details about supported deployment targets. -> For Syncfusion® Code Studio, users must explicitly configure the agent location to use it in the chat. Refer to the [documentation](https://help.syncfusion.com/code-studio/reference/configure-properties/usersettings#agent-file-locations). +> For Syncfusion® Code Studio, use the Copilot command above to install the WPF UI Composer. ## How the Syncfusion® WPF UI Composer Skill Works @@ -135,7 +135,7 @@ After installing WPF UI Composer with APM, the relevant agent and skill files ar To start using the skill: 1. Open your supported IDE. -2. In the chat panel, select the `syncfusion-wpf-ui-composer` agent from the **Agent dropdown**. +2. In the chat panel, select the `wpf-ui-composer` agent from the **Agent dropdown**. 3. Start prompting the agent with a clear description of your UI requirements. From f2b5c0a2d0b2f6a8962ce5db5269627ecc8c2345 Mon Sep 17 00:00:00 2001 From: umanagarajan12 Date: Fri, 15 May 2026 22:37:57 +0530 Subject: [PATCH 3/4] updated corrections --- wpf-toc.html | 9 ++++++--- wpf/skills/ui-composer-skill.md | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wpf-toc.html b/wpf-toc.html index 5065b50e96..bf7f38fb67 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -3,9 +3,12 @@
  • API Reference
  • -
  • - Skills -
  • +
  • Skills + +
  • Overview
  • diff --git a/wpf/skills/ui-composer-skill.md b/wpf/skills/ui-composer-skill.md index 4825d18571..56d4b74169 100644 --- a/wpf/skills/ui-composer-skill.md +++ b/wpf/skills/ui-composer-skill.md @@ -135,7 +135,7 @@ After installing WPF UI Composer with APM, the relevant agent and skill files ar To start using the skill: 1. Open your supported IDE. -2. In the chat panel, select the `wpf-ui-composer` agent from the **Agent dropdown**. +2. In the chat panel, select the `syncfusion-wpf-ui-composer` agent from the **Agent dropdown**. 3. Start prompting the agent with a clear description of your UI requirements. From dbcf77db0fa8418c9e3e6d5fa37354338876a041 Mon Sep 17 00:00:00 2001 From: umanagarajan12 Date: Fri, 15 May 2026 22:47:09 +0530 Subject: [PATCH 4/4] updated corrections --- wpf-toc.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpf-toc.html b/wpf-toc.html index bf7f38fb67..08b968c613 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -5,8 +5,8 @@
  • Skills