UIKit.UIViewController.NavigationItem Property
A UIKit.UINavigationItem that represents this UIKit.UIViewController in its parent’s UIKit.UINavigationController’s UINavigationController.UINavigationBar.

Syntax

[get: Foundation.Export("navigationItem")]
public virtual UINavigationItem NavigationItem { get; }

Value

By default, the first time this property is accessed, a new UIKit.UINavigationItem is lazily initialized with a UINavigationItem.Title set to this UIKit.UIViewController’s UIViewController.Title.'

Remarks

When a UIKit.UIViewController is a child of a UIKit.UIViewController that has a UIKit.UINavigationController, the child’s UIViewController.NavigationItem represents the UIKit.UINavigationItem in the parent’s UIKit.UINavigationBar. The first time this property is accessed, the default behavior is to lazily initialize a UIKit.UINavigationItem, so if the parent UIKit.UIViewController does not use a UIKit.UINavigationBar, application developers should either not access or override this property.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0