Changing the navigation bar icon within a PCL

VincamVincam NLMember ✭✭
edited January 2015 in Xamarin.Forms

Hello,

With the image loaded in the Android project 'Resources/icon.png' as 'AndroidResource' or 'EmbeddedResource' and loaded like this:

    this.Icon = "icon.png";

It just does not change anything. What am I missing?

EDIT: I tried this with a ContentPage (a NavigationPage), DetailPage (a NavigationPage) and MasterPage.

EDIT EDIT: Just found it,

    NavigationPage.SetTitleIcon(this, "icon.png");

Vincam

Sign In or Register to comment.