UIKit.UIBarButtonItem.GetBackgroundImage Method
The background image for the button.

Syntax

[Foundation.Export("backgroundImageForState:barMetrics:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual UIImage GetBackgroundImage (UIControlState state, UIBarMetrics barMetrics)

Parameters

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

Returns

The background imnage for the specified state and bar metrics.

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