Skip to content

Commit 6909953

Browse files
optimized redundant theme content
1 parent 70744a2 commit 6909953

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

winui/skills/ui-builder-skill.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,19 @@ Refer to the [documentation](https://microsoft.github.io/apm/reference/cli/targe
115115
3. **Control Mapping** — Map intent to Syncfusion® WinUI controls and required feature modules.
116116
4. **Theming & Design System**
117117
Load required theming guidelines and confirm key design choices:
118-
- Syncfusion® WinUI Themes: Supports **Light** and **Dark** themes for visual consistency across Windows applications
119-
- Application-level theming via `RequestedTheme` property (set in App.xaml or individual framework elements)
120-
- Theme resource customization using ResourceDictionary keys for advanced styling
121-
- Ensures theme inheritance across nested UI elements when `RequestedTheme` is applied to parent elements
118+
- Applies Syncfusion® WinUI **Light** or **Dark** themes with `RequestedTheme` property configuration
119+
- Customizes theme resources using ResourceDictionary keys for control styling
122120
- Core design basics (colors, fonts, control appearance, DPI awareness)
123-
- Light and Dark mode support with automatic theme resource file reference
124121
5. **Code Generation** — Produce C# and XAML WinUI controls, data bindings, event handlers, and styling.
125122
6. **Dependency Management** — Recommend or install required Syncfusion® NuGet packages and .NET dependencies.
126123
7. **Validation** — Run code compatibility and basic security checks, request confirmation for changes.
127124
8. **Code Insertion** — Create Page/Window classes, User Controls, or patch existing files following WinUI conventions.
128125

129126
Key enforcement points:
130127

131-
- Adds correct theme ResourceDictionaries and styling configuration for chosen Syncfusion® themes (Light or Dark)
132-
- Applies themes at application level using `RequestedTheme` property in App.xaml, or at individual control level
133-
- Leverages Syncfusion® theme resource files from [GitHub repository](https://github.com/syncfusion/winui-controls-theme-resource-files) for customization
134-
- Supports custom theme resource keys (e.g., `SyncfusionRibbonTabMenuButtonBackground`) for advanced styling at application root level
135-
- Ensures theme consistency respects system settings when `RequestedTheme` is not explicitly set
128+
- Configures theme ResourceDictionaries for Syncfusion® Light/Dark themes at application or control level
129+
- Leverages Syncfusion® theme resource files from [GitHub repository](https://github.com/syncfusion/winui-controls-theme-resource-files) with custom resource keys (e.g., `SyncfusionRibbonTabMenuButtonBackground`)
130+
- Respects system theme settings when `RequestedTheme` is not explicitly configured
136131
- Injects only the feature controls and behaviors required by generated controls
137132
- Generates well-structured XAML markup with proper binding and command setup
138133
- Follows WinUI patterns for control initialization and event handling

0 commit comments

Comments
 (0)