WPF开源控件扩展库 - MaterialDesignExtensions

MaterialDesignExtensions仓库截图

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编译。

开始

创建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
  Custom Stepper control (specification)   Done  
  Custom OversizedNumberSpinner control   Done  
  Templates for ListBox to render as a grid list (specification)   Done  
  Custom OpenDirectoryControl and OpenDirectoryDialog control   Done  
  Custom OpenFileControl and OpenFileDialog control   Done  
  Custom SaveFileControl and SaveFileDialog control   Done  
  Custom OpenMultipleDirectoriesControl and OpenMultipleDirectoriesDialog control   Done  
  Custom OpenMultipleFilesControl and OpenMultipleFilesDialog control   Done  
  Custom TextBoxOpenDirectory, TextBoxOpenFile and TextBoxSaveFile control   In development  
  Custom AppBar control ()   Done  
  Custom PersistentSearch control (specification)   Done  
  Custom SideNavigation control ()   Done  
  Custom NavigationRail control (specification)   In development  
  Custom Autocomplete control   Done  
  Custom TextBoxSuggestions control   Done  
  Templates for TabControl (specification)   Done  
  Custom MaterialWindow control   Done  
截图 Horizontal stepper

WPF开源控件扩展库 - MaterialDesignExtensions

Vertical stepper

WPF开源控件扩展库 - MaterialDesignExtensions

Side navigation

WPF开源控件扩展库 - MaterialDesignExtensions

Navigation rail

Tabs

WPF开源控件扩展库 - MaterialDesignExtensions

Material window and app bar

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zyddpd.html