UIView.Opaque Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the view is opaque or not.
public virtual bool Opaque { [Foundation.Export("isOpaque")] get; [Foundation.Export("setOpaque:")] set; }
member this.Opaque : bool with get, set
Property Value
- Attributes
Remarks
If you set this value to true, you should make sure that the entire area is painted, if you do not, the behavior is undefined. You should also set the Alpha property to 1.0.
Whenever possible, you should try to set the view as opaque, as that informs UIKit that the view does not need to be composited and blended with underlying views.