AathifMahir.Maui.MauiIcons.Fluent.Filled
2.1.5
Prefix Reserved
See the version list below for details.
dotnet add package AathifMahir.Maui.MauiIcons.Fluent.Filled --version 2.1.5
NuGet\Install-Package AathifMahir.Maui.MauiIcons.Fluent.Filled -Version 2.1.5
<PackageReference Include="AathifMahir.Maui.MauiIcons.Fluent.Filled" Version="2.1.5" />
paket add AathifMahir.Maui.MauiIcons.Fluent.Filled --version 2.1.5
#r "nuget: AathifMahir.Maui.MauiIcons.Fluent.Filled, 2.1.5"
// Install AathifMahir.Maui.MauiIcons.Fluent.Filled as a Cake Addin #addin nuget:?package=AathifMahir.Maui.MauiIcons.Fluent.Filled&version=2.1.5 // Install AathifMahir.Maui.MauiIcons.Fluent.Filled as a Cake Tool #tool nuget:?package=AathifMahir.Maui.MauiIcons.Fluent.Filled&version=2.1.5
.Net Maui Icons
The .NET MAUI Icons - Fluent Filled library serves as a lightweight icon library, addressing icon and font icon management in .NET MAUI by offering controls that utilize the comprehensive open-source version of the Fluent Icon Collection, seamlessly integrated into the library. Check out the Repository for Docs
Get Started
In order to use the .NET MAUI Icons - Fluent Filled you need to call the extension method in your MauiProgram.cs
file as follows:
using MauiIcons.Fluent.Filled;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
// Initialise the .Net Maui Icons - Fluent Filled
builder.UseMauiApp<App>().UseFluentFilledMauiIcons();
}
}
Usage
In order to make use of the .Net Maui Icons - Fluent Filled you can use the below namespace:
Xaml
xmlns:mi="http://www.aathifmahir.com/dotnet/2022/maui/icons"
C#
using MauiIcons.Fluent.Filled;
Workaround
if you came across this issue dotnet/maui#7503 when using new namespace, Make sure to create an discarded instance of MauiIcon in the codebehind like below
public MainPage()
{
InitializeComponent();
// Temporary Workaround for url styled namespace in xaml
_ = new MauiIcon();
}
Breaking Changes from v2
Old (v1)
xmlns:fluentFilled="clr-namespace:MauiIcons.FluentFilled;assembly=MauiIcons.FluentFilled"
<fluentFilled:MauiIcon Icon="AppFolder48Filled"/>
New (v2)
xmlns:mi="http://www.aathifmahir.com/dotnet/2022/maui/icons"
<mi:MauiIcon Icon="{mi:FluentFilled AppFolder48Filled}"/>
Nuget Package Changes
AathifMahir.Maui.MauiIcons.FluentFilled
is Depcrecated and Replaced byAathifMahir.Maui.MauiIcons.Fluent.Filled
Built in Control Usage
Xaml
<mi:MauiIcon Icon="{mi:FluentFilled AppFolder48Filled}"/>
C#
new MauiIcon() {Icon = FluentFilledIcons.AppFolder48Filled, IconColor = Colors.Green};
new MauiIcon().Icon(FluentFilledIcons.Accessibility48Filled).IconColor(Colors.Purple);
All the Properties and Features of Built in Control, Check Here
Xaml Extension Usage
<Image Aspect="Center" Source="{mi:FluentFilled Icon=Accessibility48Filled}"/>
<Label Text="{mi:FluentFilled Icon=AppFolder48Filled}"/>
C# Markup Usage
new ImageButton().Icon(FluentFilledIcons.AppFolder48Filled),
new Image().Icon(FluentFilledIcons.Accessibility48Filled),
new Label().Icon(FluentFilledIcons.AppFolder48Filled).IconSize(40.0).IconColor(Colors.Red),
new Entry().Icon(FluentFilledIcons.Accessibility48Filled).IconSize(20.0).IconColor(Colors.Aqua),
Disclaimer: It's important to note that not all controls are compatible with C# markup. We have conducted tests with the following controls in the current release: Label, Image, ImageButton, SearchBar, Editor, and Entry. Additionally, the native MauiIcon control, when combined with C# markup, can prove to be quite versatile and offer extra features for various scenarios.
Applying Icon To Text or Placeholder
Controls that Supports Placeholder, Can Assign the Icon To PlaceHolder or Text, Defaults to Placeholder but can be set to Text by Setting isPlaceHolder Parameter to False
new Entry().Icon(FluentFilledIcons.Accessibility48Filled, isPlaceHolder: false).IconSize(20.0).IconColor(Colors.Aqua);
new SearchBar().Icon(FluentFilledIcons.AppFolder48Filled, isPlaceHolder: false);
Disclaimer: It's important to note that not all controls are compatible with C# markup. We have conducted tests with the following controls in the current release: Label, Image, ImageButton, SearchBar, Editor, and Entry. Additionally, the native MauiIcon control, when combined with C# markup, can prove to be quite versatile and offer extra features for various scenarios.
Custom OnPlatform and OnIdiom Usage
Xaml
<mi:MauiIcon Icon="{mi:FluentFilled AppFolder48Filled}" OnPlatforms="WinUI, Android, MacCatalyst"/>
<mi:MauiIcon Icon="{mi:FluentFilled Accessibility48Filled}" OnIdioms="Desktop, Phone, Tablet"/>
<mi:MauiIcon Icon="{mi:FluentFilled AppFolder48Filled}" OnPlatforms="Android" OnIdioms="Phone"/>
C#
new MauiIcon().Icon(FluentFilledIcons.AppFolder48Filled).OnPlatforms(new List<string>{"WinUI", "Android"});
new MauiIcon().Icon(FluentFilledIcons.Accessibility48Filled).OnIdioms(new List<string>{"Desktop", "Phone"});
new MauiIcon().Icon(FluentFilledIcons.AppFolder48Filled).OnPlatforms(new List<string>{"WinUI", "Android"}).OnIdioms(new List<string>{"Desktop", "Phone"});
Maui Built in OnPlatform and OnIdiom Usage
<Image>
<Image.Source>
<OnPlatform x:TypeArguments="ImageSource" Default="{mi:FluentFilled Icon=Accessibility48Filled, TypeArgument={x:Type ImageSource}}">
<On Platform="MacCatalyst, WinUI"
Value="{mi:FluentFilled Icon=AppFolder48Filled, IconBackgroundColor=Cyan, TypeArgument={x:Type ImageSource}}"/>
</OnPlatform>
</Image.Source>
</Image>
<Image>
<Image.Source>
<OnIdiom Default="{mi:FluentFilled Icon=AppFolder48Filled, TypeArgument={x:Type ImageSource}}"
Desktop="{mi:FluentFilled Icon=Accessibility48Filled, TypeArgument={x:Type ImageSource}}">
</OnIdiom>
</Image.Source>
</Image>
Disclaimer: Only ImageSource or FontImageSource Supports Maui's Built in OnPlatform or OnIdiom and TypeArgument Should be Assigned to Work Optimally, Therefore It's Recommended to use MauiIcons Custom OnPlatform and OnIdioms
License
MauiIcons.Fluent.Filled
MauiIcons.Fluent.Filled is Licensed Under MIT License.
Fluent UI System Icons
Fluent UI System Icons is Licensed Under MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-android33.0 is compatible. net7.0-ios was computed. net7.0-ios16.1 is compatible. net7.0-maccatalyst was computed. net7.0-maccatalyst16.1 is compatible. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows10.0.19041 is compatible. net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios17.2 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst17.2 is compatible. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. |
-
net7.0
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
-
net7.0-android33.0
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
-
net7.0-ios16.1
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
-
net7.0-maccatalyst16.1
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
-
net7.0-windows10.0.19041
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
-
net8.0
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
- Microsoft.Maui.Controls (>= 8.0.7)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.7)
-
net8.0-android34.0
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
- Microsoft.Maui.Controls (>= 8.0.7)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.7)
-
net8.0-ios17.2
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
- Microsoft.Maui.Controls (>= 8.0.7)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.7)
-
net8.0-maccatalyst17.2
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
- Microsoft.Maui.Controls (>= 8.0.7)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.7)
-
net8.0-windows10.0.19041
- AathifMahir.Maui.MauiIcons.Core (>= 2.1.5)
- Microsoft.Maui.Controls (>= 8.0.7)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v2.1.5
• New and Improved Extension for MauiIcon C#
v2.1.2
• Minor Fixes and Improvements for Base Extension
v2.1.1
• Minor Patch on Issue #83
v2.1.0
• Docs Update
v2.0.0
• New Modular Core
• Major Core Control Enhancements
• Icon Suffix Support on Core Control
• Major Core Extension Enhanecements and Support for C# Markup Extension
• New C# Markup Extension for Maui Built in Controls
• New OnPlatform and OnIdioms Support
• Improved Docs
• Breaking Changes - https://github.com/AathifMahir/MauiIcons/#breaking-changes-from-v2
v1.2.1
• Added Support for Vanilla Version of Dotnet to Unit Test the Project
v1.2.0
• Added Variant Support Base Control and Extension
• New and Improved Icon Control
v1.1.5
• Added Icon Unicode Support for Icon Extension
• Added Direct Content Support
• Minor Enhancements and Fixes
v1.1.1
• Minor Enhancements and Fixes
v1.1.0
• Dotnet 7 Support
• Minor Enhancements and Fixes
v1.0.1
• FluentFilled Icons Support