Forum Cross Platform with Xamarin


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Can't show the icon for Toolbar Item in UWP

Leonard89Leonard89 Member

Hi to all. I'm working on an App for UWP and Android platforms. I want to set an icon for a button in the navigation toolbar. This is my code in xaml:

<ContentPage.ToolbarItems> <ToolbarItem x:Name="btnAbout" Text="ABOUT" Order="Primary" Clicked="OnNextPageButtonClicked"/> </ContentPage.ToolbarItems>

and this is the code in the associated cs file:

protected override void OnAppearing() { base.OnAppearing(); btnAbout.IconImageSource = ImageSource.FromResource("Monk.about.ico"); }

every just works fine on Android but on UWP I can click the button but I can't see the icon.

where did I go wrong?

Sign In or Register to comment.