UIKit.UIBarButtonItem.SetBackgroundImage Method
Allows the background image to be set for the button for a given control state and bar metrics.

Syntax

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

Parameters

backgroundImage

The background image to use for the button.

This parameter can be null.

state
The control state to apply the background image for.
barMetrics
The bar metrics to apply the background image for.

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