Edit

Share via


UIView.BackgroundColor Property

Definition

Sets the background color of the UIView.

C#
public virtual UIKit.UIColor BackgroundColor { [Foundation.Export("backgroundColor", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setBackgroundColor:", ObjCRuntime.ArgumentSemantic.Strong)] set; }

Property Value

The default value is null.

This value can be null.

Attributes

Remarks

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

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to

Product Versions
Xamarin iOS SDK 12