Skip to content

MostroW1502/xaml-feather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xaml-feather

XAML version of feathericons for usage in WPF.

FeatherIcons Github Page FeatherIcons Webpage

Basic usage:

Copy the FeatherIcons.xaml file to your project by including it as an existing item or drag it unto your project.

Open up your "App.xaml" file and add these lines between the application resources tags.

<ResourceDictionary>
  <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="pack://application:,,,/FeatherIcons.xaml"/>
  </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

To use an icon you can refer to it as a "StaticResource" e.g.

<Button Grid.Column="0" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Padding="3" Margin="3">
  <Viewbox>
    <ContentControl Content="." ContentTemplate="{StaticResource File}"/>
  </Viewbox>
</Button>

This would create a button with the File icon drawn unto it's surface. The icon should scale nicely thanks to the Viewbox control.

Icons can be added programatically as well, check the example application code for usage!

About

xaml version of feather icons for usage in WPF

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages