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

Changing the navigation bar icon within a PCL

$
0
0

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


Viewing all articles
Browse latest Browse all 58056

Trending Articles