Lucide.NET.Wpf
0.1.2
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package Lucide.NET.Wpf --version 0.1.2
NuGet\Install-Package Lucide.NET.Wpf -Version 0.1.2
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="Lucide.NET.Wpf" Version="0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lucide.NET.Wpf" Version="0.1.2" />
<PackageReference Include="Lucide.NET.Wpf" />
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 Lucide.NET.Wpf --version 0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Lucide.NET.Wpf, 0.1.2"
#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 Lucide.NET.Wpf@0.1.2
#: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=Lucide.NET.Wpf&version=0.1.2
#tool nuget:?package=Lucide.NET.Wpf&version=0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Lucide.NET
Lucide.NET provides fast, strongly-typed Lucide icons for the C# ecosystem with first-class support for WPF, WinForms, and Blazor.
Packages
Lucide.NET.Core(shared icon catalog + SVG retrieval)Lucide.NET.Wpf(WPF controls and markup extension)Lucide.NET.WinForms(WinForms bitmap/icon helpers)Lucide.NET.Blazor(Blazor component)
Install
dotnet add package Lucide.NET.Core
dotnet add package Lucide.NET.Wpf
dotnet add package Lucide.NET.WinForms
dotnet add package Lucide.NET.Blazor
WPF
<Window
xmlns:lucide="http://lucide.net/wpf">
<StackPanel>
<lucide:LucideIcon Kind="Home" Size="20" StrokeThickness="2" Stroke="DodgerBlue" />
<Image Source="{lucide:LucideImage Home, Size=18, Brush=Black}" />
</StackPanel>
</Window>
Lucide.NET.Wpf uses the SharpVectors.Wpf package (v1.8.5) to convert SVG markup into frozen DrawingImage instances.
WinForms
using System.Drawing;
using Lucide.NET;
using Lucide.NET.WinForms;
var bitmap = LucideWinForms.ToBitmap(LucideIconKind.House, 24, Color.Black);
var icon = LucideWinForms.ToIcon(LucideIconKind.CircleAlert, 16, Color.DarkRed);
Lucide.NET.WinForms uses the Svg package (v3.4.7) to rasterize SVG markup into cached Bitmap instances.
Blazor
@using Lucide.NET
@using Lucide.NET.Blazor
<LucideIcon Kind="LucideIconKind.ShoppingCart" Size="24" Stroke="currentColor" StrokeWidth="2" />
Performance and Caching
- Core caches decompressed SVG strings by
LucideIconKind. - WPF caches frozen
DrawingImageinstances by kind, size, stroke thickness, and stroke color. - WinForms caches rasterized
Bitmapinstances by kind, size, stroke width, color, and DPI.ToBitmapreturns the cached instance; clone it if you need to dispose:
using var bitmap = new Bitmap(LucideWinForms.ToBitmap(LucideIconKind.House, 24, Color.Black));
Updating Icons
- Download or copy Lucide SVGs:
.\eng\icons\update-lucide.ps1 -Version main
.\eng\icons\update-lucide.ps1 -SourcePath C:\path\to\lucide
- Run the generator:
.\eng\icons\generate.ps1 -InputPath .\eng\icons\lucide
- Commit generated files in
src/Lucide.NET.Core/Generatedandsrc/Lucide.NET.Core/Resources.
License
MIT. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
| .NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Lucide.NET.Core (>= 0.1.2)
- SharpVectors.Wpf (>= 1.8.5)
-
net6.0-windows7.0
- Lucide.NET.Core (>= 0.1.2)
- SharpVectors.Wpf (>= 1.8.5)
-
net8.0-windows7.0
- Lucide.NET.Core (>= 0.1.2)
- SharpVectors.Wpf (>= 1.8.5)
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 |
|---|---|---|
| 0.1.2 | 159 | 2/12/2026 |