一个库中包含了适用于 Avalonia 的强大的图标包。支持各种平台,如 Windows、macOS、Linux、iOS、Android 和 WebAssembly。
一个库中包含了适用于 Avalonia 的强大的图标包。支持各种平台,如 Windows、macOS、Linux、iOS、Android 和 WebAssembly。
The IconPacks packages contains controls, markup extensions and converters to use these awesome icons with your Avalonia applications in a simple way.
The same icons are also available for WPF and UWP with the MahApps.Metro.IconPacks packages which makes your WPF and UWP applications nicer.
| Icon collection | Version | ∑ | NuGet |
|---|---|---|---|
| Complete IconPacks collection with all Icons in one package | 69328 | ||
| Bootstrap Icons | 1.13.1 | 2078 | |
| Boxicons v2 | 2.1.4 | 1634 | |
| Boxicons v3 | 3.0.0 | 3584 | |
| Circum Icons Free | 2.0.2 | 288 | |
| Codicons | 0.0.41 | 499 | |
| Coolicons | 4.1 | 442 | |
| Entypo+ | 411 | ||
| Eva Icons | 1.1.3 | 490 | |
| Feather Icons | 4.29.1 | 287 | |
| File Icons | 2.1.47 | 920 | |
| Fontaudio | 1.1.0 | 155 | |
| Font Awesome Free v5 | 5.15.4 | 1611 | |
| Font Awesome Free v6 | 6.7.2 | 2060 | |
| Font Awesome Free v7 | 7.1.0 | 2089 | |
| Fontisto | 3.0.4 | 616 | |
| Fork Awesome | 1.2.0 | 794 | |
| Game Icons | May 4, 2025 | 4170 | |
| Ionicons | 4.6.4.1 | 696 | |
| Jam Icons | 3.1.0 | 940 | |
| Keyrune Icons | 3.17.1 | 404 | |
| Lucide Icons | 0.552.0 | 1640 | |
| Material Design Icons | 7.4.47 | 7447 | |
| Material Design Icons Light | 0.2.63 | 257 | |
| Material Icons (Google) | 0.14.15 | 8413 | |
| Memory Icons | 1.5.0 | 651 | |
| Microns | 1.1.4 | 164 | |
| MingCute Icon | 2.9.6 | 3098 | |
| Modern UI Icons | Feb 12, 2015 | 1260 | |
| MynaUI Icons | 0.3.9 | 2544 | |
| Primer Octicons (GitHub) | 19.19.0 | 670 | |
| Phosphor Icons | 2.1.1 | 7560 | |
| PICOL Icons | 1.1.0 | 549 | |
| Pixelarticons | 1.8.1 | 486 | |
| Radix Icons | 1.3.0 | 324 | |
| Remix Icon | 4.7.0 | 3135 | |
| RPG Awesome | 0.2.0 | 495 | |
| Simple Icons | 15.18.0 | 3369 | |
| Typicons | 2.1.2 | 336 | |
| Unicons | 4.2.0 | 1610 | |
| Vaadin Icons | 24.8.4 | 636 | |
| Weather Icons | 2.0.12 | 219 | |
| Zondicons | July 12, 2017 | 297 |
IconPacks.Avalonia is delivered via NuGet package manager. You can find the packages here:
Use these commands in the Package Manager console to install packages manually:
…Use this axaml/xaml namespace for all IconPacks:
xmlns:iconPacks="https://github.com/MahApps/IconPacks.Avalonia"Add the styles to the Applications styles
The resource avares://IconPacks.Avalonia/Icons.axaml should be used when using the main IconPacks.Avalonia NuGet package which contains all icons.
All other has the naming scheme avares://IconPacks.Avalonia./.axaml
The PackIcon controls are the main featured controls to use an icon from an IconPack in a simple way.
Each package has there own control with this name scheme: PackIcon
or
The PackIconControl is a control which can be used for any kind of available IconPacks.
This control is only available with the main IconPacks.Avalonia NuGet package.
or
A faster way to get an Icon for any ContentControl is to use the PackIcon MarkupExtension.
If you want e.g. a Button with an Icon from the Codicons then you can do this:
It's also possible to use some properties of the MarkupExtension like this:
There is also a general (generic) MarkupExtension available.
With this MarkupExtension you can use any IconPack enumeration.
This MarkupExtension is only available with the main IconPacks.Avalonia NuGet package.
It's possible to use all icons as an Image with the PackIcon image MarkupExtension.
In addition, there is also a general (generic) MarkupExtension available.
This MarkupExtension is only available with the main IconPacks.Avalonia NuGet package.
The PackIcon image converters can be used to convert a PackIcon to an Image.
In addition, there is also a general (generic) PackIconKindToImageConverter available.
This PackIconKindToImageConverter is only available with the main IconPacks.Avalonia NuGet package.
This library is free and can be used in open source and commercial applications.
It's tested, contributed and used by me and many other people... So mainly hit the :star: button, that's all. :heart: :chipmunk: ( :dollar: or :euro: or :coffee: or :beer: or some other gifts are also being accepted...).
Please don't forget to give also a :star: to all used icon repositories!!!
A Browser for all available Icon packages can be found here.
暂无开放 Issues,或尚未同步最近议题。