Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate FontAwesome in NavigationViewItem #675

Open
oghenez opened this issue Oct 2, 2024 · 0 comments
Open

Integrate FontAwesome in NavigationViewItem #675

oghenez opened this issue Oct 2, 2024 · 0 comments

Comments

@oghenez
Copy link

oghenez commented Oct 2, 2024

Hello

I have struggled to incluse fontawesome without success.
First in my App.xaml file i included like this

 <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ui:ThemeResources />
                <ui:XamlControlsResources />
            </ResourceDictionary.MergedDictionaries>
          
            <FontFamily x:Key="FontAwesome">pack://application:,,,/NavigationDemo;component/Fonts/FontAwesome-5-Free-Regular-400.otf</FontFamily>

        </ResourceDictionary>
    </Application.Resources>
</Application>

and i tried to use like this


<ui:NavigationViewItem Content="Add" Tag="home">
                    <ui:NavigationViewItem.Icon>
                        <ui:FontIcon FontFamily="{StaticResource FontAwesome}" Glyph="&#xf015;" /> 
                    </ui:NavigationViewItem.Icon>
                </ui:NavigationViewItem>
                
                <ui:NavigationViewItem Content="customer" Tag="customer" Icon="Contact"/>

But without success, pls can someone help me out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant