innom
innom

Reputation: 1007

Xamarin.Forms: Burger IconImageSource on iOS is pixelated

I am using the iconimagesource on my masterdetail page to display an icon as the burger menu. I am using a tiny icon, and it is rendered pixelated

enter image description here

If I were to use an image with higher res, it would be rendered bigger until it is finally leaving its container. it looks terrible.

I think I would need a custom renderer to renderer the icon here, since I cannot add atributes to the XAML:

    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
     x:Class="InteriorCircle.Pages.MainMenu.Page_MainMenuMaster"
     Title="AD"
     IconImageSource="{OnPlatform iOS=btn_burgermenu.png}"
     >

Any ideas on how to solve this?

Upvotes: 2

Views: 493

Answers (1)

ColeX
ColeX

Reputation: 14475

Why don't you use the official sample icon directly ?

Download the icon file in this link .

If you want to use your own image , just make its dimensions as 28*30.

enter image description here

And place it into Resources named it as [email protected].

enter image description here

Upvotes: 3

Related Questions