UIKit.UIToolbar.SetBackgroundImage Method
Sets the image that will be displayed in the background of a toolbar for a given position of the toolbar.

Syntax

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

Parameters

backgroundImage

The image that will be displayed in the background

This parameter can be null.

position
The position the toolbar will be in for the image to be displayed.
barMetrics
The metrics the device will be in for the image to be displayed.

Remarks

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

Requirements

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