1. Create a WPF project
First create a WPF project
2. Install HandyControl
Click Tools->NuGet Package Manager->Manage the NuGet package of the solution, as shown in the figure:
Search HandyControl directly, as shown in the figure:
Click to install:
The installation is complete:
3. Add code to App.xaml
Add the following code to App.xaml:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml" />
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
as the picture shows:
4. Start using HandyControl
HandyControl has been added to the toolbox and can be used, as shown in the figure:
HandyControl: https://github.com/NaBian/HandyControl
I hope this article is helpful to everyone. If there is anything wrong with the above, please correct me.
Sharing determines the height, and learning widens the gap