Working FontAwesome v6 DuoTone icon in Maui
- General idea: https://gist.github.com/tomh4/e3a37f1abba2361ed02c09577dc2f09c
- FontAwesomeIcons.cs https://github.com/matthewrdev/fa2cs
<ContentPage
xmlns:controls="clr-namespace:CommunityFA.Controls;assembly=CommunityFA.Controls"
xmlns:fa="clr-namespace:FontAwesome;assembly=CommunityFA.Controls"
...
>
<controls:DuoToneIcon Icon="{x:Static fa:FontAwesomeIcons.BatteryLow}" IconSize="32" />
To run the sample, download the pro for web package and place the duotone font file fa-duotone-900.ttf
in CommunityFA.Controls.SampleViewer/Resources/Fonts
- Basic DuoTone Control
- Animation
- Opacity Swap Property
- Support Brushes (Gradients?)
- DuoTone Button with Icon