一 , 在NuGet安装相关程序包, 需要用到以下两个程序包
HandyControl 和 HandyControls 注意一定要安装相同版本的,不然有可能会报错
二 , 在App.xaml 的Application.Resources中引用 HandyControl相关资源
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
三 , 在页面中引用命名空间
xmlns:hc="https://handyorg.github.io/handycontrol"
四 , 然后就可以愉快的玩耍了