自学内容网 自学内容网

WPFDeveloper正式版发布

WPFDeveloper

WPFDeveloper一个基于WPF自定义高级控件的WPF开发人员UI库,它提供了众多的自定义控件。

该项目的创建者和主要维护者是现役微软MVP 闫驚鏵: https://github.com/yanjinhuagood

该项目还有众多的维护者,详情可以访问github上的README,项目地址:https://github.com/WPFDevelopersOrg/WPFDevelopers

WPFDeveloper从2022年6月21日 发布第一个预览版1.0.5-preview,经历了35个版本的迭代,终于推出了正式版0.0.0.1。

欢迎各位小伙伴前来使用体验,在使用过程中遇到任何问题,可以到项目的issue下进行反馈。

支持的.NET版本

.Net VersionStatus
net40
net45
net46
net47
net48
netcoreapp3.0
net5.0-windows
net6.0-windows
net7.0-windows
net8.0-windows

如何使用

1、安装nuget包

1 Install-Package WPFDevelopers

2、引入资源

引入XAML命名空间

1 xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"

添加到资源字典中

 1 <Application.Resources>
 2         <ResourceDictionary>
 3             <ResourceDictionary.MergedDictionaries>
 4                     <ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Light.Blue.xaml"/>
 5                     <!--需要注意 wd:Resources 必须在配色主题后,Theme="Dark" 为黑色皮肤-->
 6                     <wd:Resources Theme="Light"/>
 7                     <ResourceDictionary Source="pack://application:,,,/WPFDevelopers;component/Themes/Theme.xaml"/>
 8             </ResourceDictionary.MergedDictionaries>
 9         </ResourceDictionary>
10 </Application.Resources>

3、正常添加控件使用即可

如何编译

1、从github导入代码,如果访问比较慢,可以从gitee导入。gitee地址:https://gitee.com/WPFDevelopersOrg/WPFDevelopers

2、使用Visual Studio 2022编译

需要注意的地方:

一、提示snk找不到的问题

解决方案:

打开WPFDeveloper.Net45x工程文件,移除以下内容

二、提示.NET sdk找不到

找到Builds目录下的TargetFrameworks.props文件,在TargetFrameworks中移除本机没有安装的.NET sdk版本即可正常编译

控件库展示


原文地址:https://blog.csdn.net/zhaotianff/article/details/142941026

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!