Flags.Icons.WinForms 3.1.1

dotnet add package Flags.Icons.WinForms --version 3.1.1
                    
NuGet\Install-Package Flags.Icons.WinForms -Version 3.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Flags.Icons.WinForms" Version="3.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Flags.Icons.WinForms" Version="3.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Flags.Icons.WinForms" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Flags.Icons.WinForms --version 3.1.1
                    
#r "nuget: Flags.Icons.WinForms, 3.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Flags.Icons.WinForms@3.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Flags.Icons.WinForms&version=3.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Flags.Icons.WinForms&version=3.1.1
                    
Install as a Cake Tool

Flags.Icons

Flags.Icons demo

Flag icons from 5 upstream sources — Twemoji (262 country + subdivision emoji), Circle (430, HatScripts), Square (417, kapowaz), Lipis (271, lipis/flag-icons 4×3), FlagHub (259, Alpaq92's maintained fork of madebybowtie/FlagKit) — packaged as drop-in controls for Avalonia, Eto.Forms, .NET MAUI, Aprillz.MewUI, Uno Platform, Windows Forms, WinUI 3 and WPF. Every SVG ships as an embedded resource in the core Flags.Icons package — no runtime download, no file-system access.

Counts as of 2026-06-01; refreshed monthly via the upstream-bump workflow, so any given release may carry slightly different totals — the actual numbers print in the build log.

v3: the FlagKit-style artwork from v1 is back, sourced from the maintained Alpaq92/FlagHub fork and surfaced as a fifth source (FlagHub="US" / FlagHubFlag.US). Additive on top of v2, still breaking vs v1 (no FlagKind enum — use one of the five typed source properties).

Install

dotnet add package Flags.Icons.Avalonia    # or .Eto / .MAUI / .MewUI / .Uno / .WinForms / .WinUi / .WPF

Every platform package transitively pulls in Flags.Icons core.

Usage

One strongly-typed enum per source: TwemojiFlag, CircleFlag, SquareFlag, LipisFlag, FlagHubFlag. FlagIcon exposes one property per source (DependencyProperty / BindableProperty / StyledProperty / plain CLR property, depending on the UI stack); set exactly one and the others auto-clear.

<flag:FlagIcon Twemoji="US" Width="48" Height="36" />
<flag:FlagIcon Circle="US"  Width="48" Height="36" />
<flag:FlagIcon Square="US"  Width="48" Height="36" />
<flag:FlagIcon Lipis="US"   Width="48" Height="36" />
<flag:FlagIcon FlagHub="US" Width="48" Height="36" />
var flag = new FlagIcon { Twemoji = TwemojiFlag.US };

Per-stack XAML namespaces and code-first usage examples in the full README on GitHub →

Source: MIT. Bundled flag SVGs from jdecked/twemoji (graphics CC-BY 4.0, code MIT), HatScripts/circle-flags (MIT), kapowaz/square-flags (MIT), lipis/flag-icons (MIT), Alpaq92/FlagHub (MIT, FlagKit fork).

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.1 46 6/3/2026
3.1.0 94 6/1/2026
3.0.0 105 5/28/2026
2.0.0 98 5/25/2026
1.3.0 90 5/25/2026
1.2.4 85 5/25/2026
1.2.3 97 5/24/2026