UIKit.UIViewController.TabBarItem Property
A UIKit.UITabBarItem that represents this UIKit.UIViewController in its parent’s UIKit.UITabBarController’s UITabBarController.UITabBar.

Syntax

[get: Foundation.Export("tabBarItem")]
[set: Foundation.Export("setTabBarItem:")]
public virtual UITabBarItem TabBarItem { get; set; }

Value

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

Remarks

When a UIKit.UIViewController is a descendant of a UIKit.UITabBarController, the child’s UIViewController.TabBarItem represents the UIKit.UITabBarItem in the ancestor’s UITabBarController.UITabBar. The first time this property is accessed, the default behavior is to lazily initialize a UIKit.UITabBarItem, so if there is no ancestor UIKit.UITabBarController, 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