⼿把⼿教你如何使⽤HandyControl,⼀款开源WPF控件神器
1.⾸先创建你的WPF⼯程
2.从Nuget中安装HandyControl
VS2017默认已经集成Nuget包管理⼯具,直接搜索  HandyControl  安装即可
3.在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>
4.添加界⾯代码
<Window x:Class="WpfApp3.MainWindow"
xmlns="schemas.microsoft/winfx/2006/xaml/presentation"
xmlns:x="schemas.microsoft/winfx/2006/xaml"
xmlns:d="schemas.microsoft/expression/blend/2008"
xmlns:mc="/markup-compatibility/2006"
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
xmlns:local="clr-namespace:WpfApp3"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<WrapPanel>
<controls:RadioGroup Margin="5,16,0,0"
Style="{StaticResource RadioGroupSolid}"
Width="200">
<RadioButton Content="全部" />
<RadioButton Content="未发货"/>
<RadioButton Content="已发货"
IsChecked="True"
/>
</controls:RadioGroup>
</WrapPanel>
</Grid>
</Window>
5.编译 运⾏  妥妥的没问题  感谢 NaBian
后续使⽤过程中有新体会将持续分享给⼤家,记得关注哦  这个WPF开源控件项⽬⾮常给⼒,强烈建议⼤家尝试下