UIKit.UIViewController.DefinesPresentationContext Property
Specifies whether this UIKit.UIViewController’s UIViewController.View is shown when presenting another UIKit.UIViewController.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
[get: Foundation.Export("definesPresentationContext")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
[set: Foundation.Export("setDefinesPresentationContext:")]
[set: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual bool DefinesPresentationContext { get; set; }

Value

The default is false.

Remarks

When an application presents a view (i.e., using UIViewController.PresentViewController, UIViewController.PresentModalViewController, or UIViewController.PresentMoviePlayerViewController), iOS calls this method on the presenting UIKit.UIViewController. If this method returns false, iOS will call this method on UIViewController.ParentViewController. If no UIKit.UIViewController in the chain return true, the presented UIKit.UIViewController is presented using the root UIKit.UIViewController context.

Requirements

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