Xamarin forms TabPage Icon sizes

SSB 111 Reputation points
2022-07-08T08:49:28.283+00:00

Hi all,

How to set the size of icons in the TabBar?

Do I need to create resolution specific icons and if so what size do they need to be? Right now, the icons are coming up correctly sized on iPhone SE but too small on high res phones like iPhone 13:

     <NavigationPage Title="Search" IconImageSource="{helpers:ImageResource Images.search.png}" BarTextColor="Black">  
        <x:Arguments>  
               <search:SearchPage      Title="Search"      IconImageSource="search.png"      x:Name="theSearchPage"/>  
        </x:Arguments>  
    </NavigationPage>  
  

218873-image.png

218885-image.png

Developer technologies .NET Xamarin
{count} votes

1 answer

Sort by: Most helpful
  1. SSB 111 Reputation points
    2022-07-21T08:48:51.873+00:00

    It doesn't work when the images are in the Shared Project library. So needs to be copied into the iOS project itself.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.