Hand in hand to use the open source WPF control HandyControl

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:

insert image description here
Search HandyControl directly, as shown in the figure:

insert image description here
Click to install:

insert image description here
The installation is complete:

insert image description here

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:

insert image description here

4. Start using HandyControl

HandyControl has been added to the toolbox and can be used, as shown in the figure:

insert image description here
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

Guess you like

Origin blog.csdn.net/qq_42078934/article/details/131904423