UIKit.UIView.ContentScaleFactor Property
The number of device pixels per logical coordinate point.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_0)]
[get: Foundation.Export("contentScaleFactor")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_0)]
[set: Foundation.Export("setContentScaleFactor:")]
[set: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_4_0)]
public virtual nfloat ContentScaleFactor { get; set; }

Value

The default value depends on the underlying hardware and the backing view type. The value is typically either 2.0 or 1.0.

Remarks

The coordinate space used by application developers is measured in logical points. High-resolution (Retina) displays will have more than a single physical pixel per logical point and this property specifies the scale factor.

UIKit.UIViews that are backed by a CoreAnimation.CAEAGLLayer may return 1.0 even if they are being displayed on a high-resolution screen.

Requirements

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