GitHub - davidxuang/FluentIcons at backports/avalonia-v0.10 (original) (raw)

FluentIcons

This is a backports release for Avalonia 0.10.*.

A multi-framework wrapper of fluentui-system-icons.

Packages

Package Platform
FluentIcons.Avalonia Avalonia 10
FluentIcons.Avalonia.Fluent FluentAvalonia 1.3 (Avalonia 10)

Usage

This package features <SymbolIcon> element, and <SymbolIconSource> on platforms with <IconSource>, which generally provide following properties:

Avalonia / WPF

To enable UseSegoeMetrics globally, call UseSegoeMetric(this AppBuilder builder) on Avalonia and UseSegoeMetric(this Application app) on WPF.

MAUI

⚠️ The extension method UseFluentIcons(this MauiAppBuilder builder, bool useSegoeMetrics) must be called to register fonts properly. ⚠️

SymbolImageSource is provided on MAUI.

UWP / WinUI

⚠️ You must reference this package directly so that fonts can be included in the build output properly. ⚠️

To enable UseSegoeMetrics globally, call UseSegoeMetric(this Application app) or UseSegoeMetric(this IHostBuilder builder) (WinUI-only).