UIKit.UINavigationBar.SetBackgroundImage Method
Changes the background image for the barMetrics.

Syntax

[Foundation.Export("setBackgroundImage:forBarMetrics:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual void SetBackgroundImage (UIImage backgroundImage, UIBarMetrics barMetrics)

See Also

UINavigationBar.GetBackgroundImage

Parameters

backgroundImage

The background image, or null to clear it.

This parameter can be null.

barMetrics
Specifies the orientation of the toolbar.

Remarks

This member participates in the UIKit.UIAppearance styling system. See the UINavigationBar.Appearance property and the UINavigationBar.AppearanceWhenContainedIn method.

Requirements

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