Files
HandyControl/skills/handycontrol-wpf-native-styles/SKILL.md
T
2026-10-27 09:12:40 +08:00

15 lines
813 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: handycontrol-wpf-native-styles
description: "为原生 WPF Button、TextBox、DataGrid、ListBox 等应用 HandyControl 样式和附加属性,区分原生与 hc 同名控件。"
---
# HandyControl WPF 原生控件样式
程序集/NuGet 为 `HandyControl`,XAML 命名空间为
`xmlns:hc="https://handyorg.github.io/handycontrol"`,C# 控件命名空间为 `HandyControl.Controls`。
在 `App.xaml` 合并 `pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml`,
然后合并 `pack://application:,,,/HandyControl;component/Themes/Theme.xaml`。
已有主题配置时先检查,避免重复合并。版本和目标框架以使用方项目为准。
按任务阅读 [配置及示例](references/usage.md)。先确认控件实际 CLR 类型和样式 TargetType,再修改资源。