UIKit.UIView.AppearanceWhenContainedIn Method
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.

Syntax

public static UIView.UIViewAppearance AppearanceWhenContainedIn (params Type[] containers)

Parameters

containers
List of types that you want to have as the containers to apply this particular appearance

Returns

The appearance proxy object that you can use to set properties when the given container hierarchy is active

Remarks

The returned object represents the UIAppearance proxy where you can set appearance properties for instances of UIView when those instances are contained in the hierarchy specified by the containers parameter.

The following example shows how the AppearanceWhenContainedIn method works

C# Example

var mySliders = UISlider.AppearanceWhenContainedIn (typeof (UINavigationBar), typeof (UIPopoverController));
mySliders.TintColor = UIColor.Red;

For more information, see the documentation for the UIKit.UIAppearance class.

Requirements

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