{"repo":"Projektanker/Icons.Avalonia","free":true,"listed":false,"github":"https://github.com/Projektanker/Icons.Avalonia","clone":"git clone https://github.com/Projektanker/Icons.Avalonia.git","description":null,"language":"C#","stars":430,"topics":["icons","avaloniaui","fontawesome6","materialdesignicons"],"license":"MIT","category":"ui-components","readme_excerpt":"Icons.Avalonia A library to easily display icons in an Avalonia App. NuGet Name Description Version :----------------------------------------------------------------------------------------------------------------------- :-------------------------------------------------------------- :------------------------------------------------------------------------------ Projektanker.Icons.Avalonia Core library Projektanker.Icons.Avalonia.FontAwesome Font Awesome 6 Free Projektanker.Icons.Avalonia.MaterialDesign Material Design Icons Icon providers Name Prefix Example :------------- :----: :----------- FontAwesome 6 fa fa-github MaterialDesign mdi mdi-github Usage A full example is available in the Demo project. 1. Register icon providers on app start up Register the icon provider(s) with the IconProvider.Current . 2. Add xml namespace Add xmlns:i=\"https://github.com/projektanker/icons.avalonia\" to your view. 3. Use the icon Standalone Attached to ContentControl (e.g. Button) Attached to MenuItem Custom icon size Animated As an Image source Done Implement your own Icon Provider Just implement the IIconProvider interface: and register it with the IIconProviderContainer : or The IIconProvider.Prefix property has to be unique within all registered providers. It is used to select the right provider. E.g. FontAwesomeIconProvider 's prefix is fa .","default_branch":null,"files":null,"tree":[],"storefront":"/r/Projektanker","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Projektanker/Icons.Avalonia/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}