UIKit.UIViewController.WantsFullScreenLayout Property
true if the view should overlap the status bar.

Syntax

[ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_7_0, Introduced=ObjCRuntime.Platform.iOS_3_0, Message="Use EdgesForExtendedLayout, ExtendedLayoutIncludesOpaqueBars and AutomaticallyAdjustsScrollViewInsets instead.")]
[get: Foundation.Export("wantsFullScreenLayout")]
[get: ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_7_0, Introduced=ObjCRuntime.Platform.iOS_3_0, Message="Use EdgesForExtendedLayout, ExtendedLayoutIncludesOpaqueBars and AutomaticallyAdjustsScrollViewInsets instead.")]
[set: Foundation.Export("setWantsFullScreenLayout:")]
[set: ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_7_0, Introduced=ObjCRuntime.Platform.iOS_3_0, Message="Use EdgesForExtendedLayout, ExtendedLayoutIncludesOpaqueBars and AutomaticallyAdjustsScrollViewInsets instead.")]
public virtual bool WantsFullScreenLayout { get; set; }

Value

The default value is false.

Remarks

When this property is at it's default value of false, the UIKit.UIViewController's UIViewController.View's UIView.Frame is sized so that it does not include the area under the device's status bar (the area at the stop of the screen that shows, e.g., signal and carrier, battery charge, etc.). If set to true and UIApplication.StatusBarStyle is set to UIStatusBarStyle.BlackTranslucent, the UIViewController.View will be visible behind the status bar.

C# Example

public override void ViewDidLoad ()
{
    base.ViewDidLoad ();

    WantsFullScreenLayout = true;
    UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.BlackTranslucent;
}

Requirements

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