WPF开源控件扩展库 - MaterialDesignExtensions
![](https://i-blog.csdnimg.cn/blog_migrate/4120ff2c81ef8ece640ee0e15564d0c2.png)
![](https://i-blog.csdnimg.cn/blog_migrate/3fd4a1f328a513219107fd11d386ec73.png)
Material Design Extensions 在WPF开源控件库 ????Material Design in XAML Toolkit(本站介绍:????链接)的基础上进行了控件扩展和特性新增。本开源项目中的控件或许不在????Material Design specification明确规定中,在使用时也不会和????Material Design in XAML Toolkit冲突,请放心使用.
![](https://i-blog.csdnimg.cn/blog_migrate/b1c2314e5e32606b1ea951a290736135.png)
NuGet
![](https://i-blog.csdnimg.cn/blog_migrate/ac30723431a07e1e0998a874b933641b.png)
安装NuGet包.
PM> Install-Package MaterialDesignExtensions
程序可在.NET Core 3.1 和 .NET Framework 4.5编译。
开始
创建WPF桌面应用程序
通过????NuGet安装Material Design Extensions
在你的App.xaml文件中添加样式(参考demo中的????App.xaml)
在你的XAML文件中添加命名空间
xmlns:controls="clr-namespace:MaterialDesignExtensions.Controls;assembly=MaterialDesignExtensions"
你可以使用本控件库了
重点提示
为了能够在运行时更改主题,Material Design Extensions v2.6.0的配置发生了更改。请根据Demo的????App.xaml修改配置。
控件
Material Design Extensions具有以下控件:
Control | Details | Status |
---|---|---|
????Stepper | Custom Stepper control (????specification) | Done |
????Oversized number spinner | Custom OversizedNumberSpinner control | Done |
????Grid list | Templates for ListBox to render as a grid list (specification) | Done |
????Open directory | Custom OpenDirectoryControl and OpenDirectoryDialog control | Done |
????Open file | Custom OpenFileControl and OpenFileDialog control | Done |
????Save file | Custom SaveFileControl and SaveFileDialog control | Done |
????Open multiple directories | Custom OpenMultipleDirectoriesControl and OpenMultipleDirectoriesDialog control | Done |
????Open multiple files | Custom OpenMultipleFilesControl and OpenMultipleFilesDialog control | Done |
????Text box with file path | Custom TextBoxOpenDirectory, TextBoxOpenFile and TextBoxSaveFile control | In development |
????App bar | Custom AppBar control (????specification) | Done |
????Persistent search | Custom PersistentSearch control (????specification) | Done |
????Side navigation | Custom SideNavigation control (????specification) | Done |
????Navigation rail | Custom NavigationRail control (????specification) | In development |
????Autocomplete | Custom Autocomplete control | Done |
????Text box suggestions | Custom TextBoxSuggestions control | Done |
????Tabs | Templates for TabControl (????specification) | Done |
????Material window | Custom MaterialWindow control | Done |
截图
Horizontal stepper
![](https://i-blog.csdnimg.cn/blog_migrate/42621fa59309a4d2c186c38edbb43e18.png)
Vertical stepper
![](https://i-blog.csdnimg.cn/blog_migrate/e00824726296c4690c5be5c396b8dee8.png)
Side navigation
![](https://i-blog.csdnimg.cn/blog_migrate/90d772cca72ee69c19708270c75467ac.png)
Navigation rail
![](https://i-blog.csdnimg.cn/blog_migrate/27df95a5688050c203ceaddec66c207b.png)
Tabs
![](https://i-blog.csdnimg.cn/blog_migrate/18a561453a31fdd83abc3e2dddca9238.png)
Material window and app bar
![](https://i-blog.csdnimg.cn/blog_migrate/68f0bf38ab18bc7dd3dfbf272bb5f2b3.png)
Open directory
![](https://i-blog.csdnimg.cn/blog_migrate/7010a5315a8c2769227326a77c533c99.png)
Open file
![](https://i-blog.csdnimg.cn/blog_migrate/ac0dd3470f29f46f2155ce70a213928d.png)
Save file
![](https://i-blog.csdnimg.cn/blog_migrate/cb3acf06b9a9f799801c640d428e0a7e.png)
Grid list
![](https://i-blog.csdnimg.cn/blog_migrate/2b71703d1349611bbf785f6079583dd4.png)
Persistent search
![](https://i-blog.csdnimg.cn/blog_migrate/de9412d68b0a6d792011df9d8d73ee6b.png)
Autocomplete
![](https://i-blog.csdnimg.cn/blog_migrate/1293b61de33323f31bf09fe9939e387e.png)
Oversized number spinner
![](https://i-blog.csdnimg.cn/blog_migrate/e0e42d54f565ae161c955f85bc08200e.png)
文档
API文档:????网址
协议
Material Design Extensions基于????MIT协议
感谢
本库由网友“码农01号”推荐。
资源分享
谢谢您的支持,需要任何资源,只需要在公众号后台回复对应数字即可:
01:dotnet
02:java
03:android
04:C++
05:qt
06:react
没有的资源或资源链接失效,请给我留言或加我微信。
另:大部分资源可在我的网站搜索哦:https://dotnet9.com