1、首先使用nuget包管理器下载handycontrol
2、app.xaml里面引用,这样可以使用里面的样式
<Application x:Class="HandyControlTest.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:HandyControlTest" xmlns:hc="https://handyorg.github.io/handycontrol" StartupUri="MainWindow.xaml"> <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> </Application>
3、下载demo,可以查看有哪些控件,以及控件怎么使用
下载地址:链接: https://pan.baidu.com/s/1gi98TDiVisi2Y0x94wEj2Q 提取码: 0505
标签:控件,HandyControl,C#,开源,WPF,下载 From: https://www.cnblogs.com/mqxs/p/18013395