Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Master/Detail Page show icon on iOS

$
0
0

Hi,

I'm trying to show an icon on a Master/Detail page (top left) - see below. However, on iOS, only the title (Menu) is displayed.
I do have a resource created in the iOS project named "Menu.png".

Any assistance appreciated.

        public static Page GetMainPage()
        {
            MDPage = new MasterDetailPage
            {
                Master = new ContentPage
                {
        Title= "Menu",
                    Icon = "Menu.png",
                    Content = new StackLayout
                    {
                        BackgroundColor = whiteColor,
                        Padding = new Thickness (10, 50, 10, 0),
                        Children = { 
                            MenuLink("Search"), 
                            MenuLink("Info")
                        }
                    },
                },
                Detail = CreateAppPage("Search"),
            };
            return MDPage;
        }

Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>