UIKit.UIBarButtonItem.SetBackgroundImage Method
Specifies the UIImage used as a background.

Syntax

[Foundation.Export("setBackgroundImage:forState:style:barMetrics:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual void SetBackgroundImage (UIImage backgroundImage, UIControlState state, UIBarButtonItemStyle style, UIBarMetrics barMetrics)

Parameters

backgroundImage

Background image to use for the UIBarButtonItem.

This parameter can be null.

state
Documentation for this section has not yet been entered.
style
Documentation for this section has not yet been entered.
barMetrics
Documentation for this section has not yet been entered.

Remarks

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

Requirements

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