iOS Guides | Samples

MonoTouch.UIKit.UIAppearance Class

Proxy class for styling the appearance of MonoTouch.UIKit views.

See Also: UIAppearance

Syntax

[MonoTouch.Foundation.Model]
[MonoTouch.Foundation.Protocol]
[MonoTouch.Foundation.Register("UIAppearance", false)]
public class UIAppearance : NSObject, IUIAppearance, IDisposable

Remarks

The UIAppearance class is a proxy that is created on demand to style views of a particular class. The UIAppearance framework is supported either as a way of styling all instances of a particular class or by styling all instances of a particular class that are contained in specific hierarchy.

You can get the global proxy for a particular element by accessing the static UIView.Appearance property of that class.

To obtain the UIAppearance proxy for a particular class, you should invoke the UIView.AppearanceWhenContainedIn method. This method takes a variable list of Type objects and it represents the set of containers that must be present for the style to be applied. You can use this as the pattern used to apply the style to your elements.

The following classes expose both the UIView.Appearance property and the UIView.AppearanceWhenContainedIn method:

ABPeoplePickerNavigationController, ADBannerView, AVRoutePickerView, CAInterAppAudioSwitcherView, CAInterAppAudioTransportView, EKEventEditViewController, GKAchievementViewController, GKFriendRequestComposeViewController, GKLeaderboardViewController, GKTurnBasedMatchmakerViewController, GLKView, HKActivityRingView, HMCameraView, MFMailComposeViewController, MFMessageComposeViewController, MKAnnotationView, MKCircleView, MKCompassButton, MKMapView, MKMarkerAnnotationView, MKOverlayPathView, MKOverlayView, MKPinAnnotationView, MKPolygonView, MKPolylineView, MKScaleView, MKUserTrackingBarButtonItem, MKUserTrackingButton, MPVolumeView, MSStickerBrowserView, MSStickerView, MTKView, PHLivePhotoView, PKAddPassButton, PKPaymentButton, SCNView, SKView, UIActionSheet, UIActivityIndicatorView, UIAlertView, UIBarButtonItem, UIBarItem, UIButton, UICollectionReusableView, UICollectionView, UICollectionViewCell, UIControl, UIDatePicker, UIImageView, UIInputView, UILabel, UINavigationBar, UIPageControl, UIPickerView, UIPopoverBackgroundView, UIProgressView, UIRefreshControl, UIScrollView, UISearchBar, UISegmentedControl, UISlider, UIStackView, UIStepper, UISwitch, UITabBar, UITabBarItem, UITableView, UITableViewCell, UITableViewHeaderFooterView, UITextField, UITextView, UIToolbar, UIView, UIVisualEffectView, UIWebView, UIWindow and WKWebView.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIAppearance are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Fields

static readonly
SelectorAppearanceIntPtr. Returns the proxy for the appearance.

Public Methods

override
Equals(Object) : Boolean
Whether this is equivalent to other.
static
GetAppearance(IntPtr, UITraitCollection) : IntPtr
Returns an appearance proxy for the specified traits.
static
GetAppearance(IntPtr, params Type[]) : IntPtr
This object's appearance proxy in the specified containment hierarchy.
static
GetAppearance(IntPtr, UITraitCollection, params Type[]) : IntPtr
Returns an appearance proxy for the specified traits when found in the whenFoundIn containment hierarchy.
override
GetHashCode() : Int32
Generates a hash code for the current instance.

Public Operators

static
Equality(UIAppearance, UIAppearance)Overload of the equality operator.
static
Inequality(UIAppearance, UIAppearance)Overload of the inequality operatory.