Xamarin.Forms.NavigationPage.SetTitleIcon Method
Sets the title icon of the bindable to the icon file at value.

Syntax

public static void SetTitleIcon (BindableObject bindable, FileImageSource value)

Parameters

bindable
The Xamarin.Forms.BindableObject whose title icon is being set.
value
The FileImageSource of the icon.

Remarks

C# Example

public class MyPage : NavigationPage
{
	public MyPage ()
	{
		var myContentPage = new MyContentPage (Color.White);
		this.Push (myContentPage);

		var s = "icon-45.png";
		NavigationPage.SetTitleIcon (myContentPage, s);
	}
}
          

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0