安装
Install-Package Semi.Avalonia
添加样式引用:
<Application.Styles>
<StyleInclude Source="avares://Semi.Avalonia/Themes/Index.axaml" />
</Application.Styles>
ColorPicker, DataGrid 和 TreeDataGrid 的样式单独分发,如果需要请安装并引用。
Install-Package Semi.Avalonia.ColorPicker
Install-Package Semi.Avalonia.TreeDataGrid
Install-Package Semi.Avalonia.DataGrid
样式引用:
<Application.Styles>
<StyleInclude Source="avares://Semi.Avalonia.ColorPicker/Index.axaml" />
<StyleInclude Source="avares://Semi.Avalonia.DataGrid/Index.axaml" />
<StyleInclude Source="avares://Semi.Avalonia.TreeDataGrid/Index.axaml" />
</Application.Styles>
配置完成后会修改默认的控件样式。
具体的使用可以参考官方网站:
https://github.com/irihitech/Semi.Avalonia