WPF开源控件扩展库 – MaterialDesignExtensions

MaterialDesignExtensions仓库截图
MaterialDesignExtensions仓库截图
logo
logo

Material Design Extensions 在WPF开源控件库 Material Design in XAML Toolkit(本站介绍:链接)的基础上进行了控件扩展和特性新增。本开源项目中的控件或许不在Material Design specification明确规定中,在使用时也不会和Material Design in XAML Toolkit冲突,请放心使用.

NuGet

安装NuGet包.

PM> Install-Package MaterialDesignExtensions

程序可在.NET Core 3.1 和 .NET Framework 4.5编译。

开始

  1. 创建WPF桌面应用程序
  2. 通过NuGet安装Material Design Extensions
  3. 在你的App.xaml文件中添加样式(参考demo中的App.xaml)
  4. 在你的XAML文件中添加命名空间
xmlns:controls="clr-namespace:MaterialDesignExtensions.Controls;assembly=MaterialDesignExtensions"
  1. 你可以使用本控件库了

重点提示

为了能够在运行时更改主题,Material Design Extensions v2.6.0的配置发生了更改。请根据Demo的App.xaml修改配置。

控件

Material Design Extensions具有以下控件:

ControlDetailsStatus
StepperCustom Stepper control (specification)Done
Oversized number spinnerCustom OversizedNumberSpinner controlDone
Grid listTemplates for ListBox to render as a grid list (specification)Done
Open directoryCustom OpenDirectoryControl and OpenDirectoryDialog controlDone
Open fileCustom OpenFileControl and OpenFileDialog controlDone
Save fileCustom SaveFileControl and SaveFileDialog controlDone
Open multiple directoriesCustom OpenMultipleDirectoriesControl and OpenMultipleDirectoriesDialog controlDone
Open multiple filesCustom OpenMultipleFilesControl and OpenMultipleFilesDialog controlDone
Text box with file pathCustom TextBoxOpenDirectory, TextBoxOpenFile and TextBoxSaveFile controlIn development
App barCustom AppBar control (specification)Done
Persistent searchCustom PersistentSearch control (specification)Done
Side navigationCustom SideNavigation control (specification)Done
Navigation railCustom NavigationRail control (specification)In development
AutocompleteCustom Autocomplete controlDone
Text box suggestionsCustom TextBoxSuggestions controlDone
TabsTemplates for TabControl (specification)Done
Material windowCustom MaterialWindow controlDone

截图

Horizontal stepper

Vertical stepper

Side navigation

Navigation rail

Tabs

Material window and app bar

Open directory

Open file

Save file

Grid list

Persistent search

Autocomplete

Oversized number spinner

文档

API文档:网址

协议

Material Design Extensions基于MIT协议

除非注明,文章均由 Dotnet9 整理发布,欢迎转载。

转载请注明:
作者:Dotnet9
链接:https://dotnet9.com/16565.html
来源:Dotnet9
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

发表评论

登录后才能评论