UIKit.UIView.BackgroundColor Property
Sets the background color of the UIKit.UIView.

Syntax

[get: Foundation.Export("backgroundColor")]
[set: Foundation.Export("setBackgroundColor:")]
public virtual UIColor BackgroundColor { get; set; }

Value

The default value is null.

This value can be null.

Remarks

The UIView.BackgroundColor is the rear-most visible element of a UIKit.UIView, but developers should be aware that certain UIKit.UIView subclasses such as UIKit.UITableViewCell and UIKit.UICollectionViewCell have a UITableViewCell.BackgroundView that may obscure their UIView.BackgroundColor.

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

Requirements

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