• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

AvaloniaCommunity/Material.Avalonia: Material design in AvaloniaUI

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

AvaloniaCommunity/Material.Avalonia

开源软件地址(OpenSource Url):

https://github.com/AvaloniaCommunity/Material.Avalonia

开源编程语言(OpenSource Language):

C# 100.0%

开源软件介绍(OpenSource Introduction):

Material.Avalonia

Customizable Material Design implementation for AvaloniaUI framework.

More screenshots

Overview

This library is a collection of styles and controls to help you customize your Avalonia application with Material Design theme.

  • Material Design styles for almost all Avalonia controls
  • Additional controls to support the Snackbars, side sheets, floating buttons, cards, dialogs and more
  • Easy configuration of palette (at design and runtime), according to Material Guidelines guidelines
  • Full Material Design Icons icon pack support (must be installed separately, in favor of small library size)
  • Demo applications included in the source project

nuget nuget nuget

Getting started

Check out the getting started wiki page. Or follow these very quick instructions:

  1. Add Material.Avalonia nuget package to your project:

    dotnet add package Material.Avalonia
    
  2. Edit App.xaml file:

    If you install 3.0.0-* version or higher, use this:

    <Application ...
      xmlns:themes="clr-namespace:Material.Styles.Themes;assembly=Material.Styles"
      ...>
      <Application.Styles>
        <themes:MaterialTheme BaseTheme="Dark" PrimaryColor="Purple" SecondaryColor="Lime" />
      </Application.Styles>
    </Application>

    If you install 2.5.1 or lower use this:

    <Application ...
      xmlns:themes="clr-namespace:Material.Styles.Themes;assembly=Material.Styles"
      ...>
      <Application.Resources>
        <themes:BundledTheme BaseTheme="Light" PrimaryColor="Teal" SecondaryColor="Amber"/>
      </Application.Resources>
      <Application.Styles>
        <StyleInclude Source="avares://Material.Avalonia/Material.Avalonia.Templates.xaml" />
      </Application.Styles>
    </Application>

Useful links

Powered by

portfolio_view


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap