Custom icons for taskbar without titles on Xamarin.Forms

102 Views Asked by At

Hello everyone) I am new to C # and Xamarin.forms. Now I'm making a mobile application on xamarin.forms and I have a question about adding my own icons to the taskbar: I don't know what I did wrong, but I wrote links to icons for TabBar without errors, but the icons are not displayed. I threw the icons themselves into the project folder, android and ios (and I also don’t know how to remove the headers so that there are only icons) ...

This is how I want to implement it: [! [enter image description here] 1] 1

This is how my tab bar is written:

<TabBar>
    <ShellContent
                  Icon = "icon_user.png"
                  ContentTemplate = "{DataTemplate views: PersonalAreaPage}" />
    <ShellContent
                  Icon = "icon_srqr.png"
                  ContentTemplate = "{DataTemplate views: HomePage}" />
    <ShellContent
                  Icon = "icon_settings.png"
                  ContentTemplate = "{DataTemplate views: SettingsPage}" />

</TabBar>

Here's what happened in the end ...: [! [enter image description here] 2] 2 What exactly is wrong with me? Maybe I entered the wrong path or something ... Please help me add my icons and make them centered without titles.

0

There are 0 best solutions below