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 |
---|---|
Usage
This package features <SymbolIcon>
element, and <SymbolIconSource>
on platforms with <IconSource>
, which generally provide following properties:
- Symbol : Symbol
- Breaking change since 1.1.229: LTR/RTL specific values are removed, use
FlowDirection
instead.
- Breaking change since 1.1.229: LTR/RTL specific values are removed, use
- IsFilled : bool
- UseSegoeMetrics: bool
- New feature since 1.1.229: match the metrics of Segoe Fluent Icons. see also: Seagull Icons
- FlowDirection : FlowDirection
- New feature since 1.1.229: switch between LTR/RTL icon variant.
- FontSize : double
- Breaking change since 1.1.225: no longer inherit value from parent element to match WinUI behaviours.
- Foreground : Brush
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).