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.