UIKit.UIAppearance Class
Proxy class for styling the appearance of UIKit views.

See Also: UIAppearance Members

Syntax

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

Remarks

The UIKit.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 UIKit.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:

AddressBookUI.ABPeoplePickerNavigationController, iAd.ADBannerView, CoreAudioKit.CAInterAppAudioSwitcherView, CoreAudioKit.CAInterAppAudioTransportView, EventKitUI.EKEventEditViewController, GameKit.GKAchievementViewController, GameKit.GKFriendRequestComposeViewController, GameKit.GKLeaderboardViewController, GameKit.GKTurnBasedMatchmakerViewController, GLKit.GLKView, MessageUI.MFMailComposeViewController, MessageUI.MFMessageComposeViewController, MapKit.MKAnnotationView, MapKit.MKCircleView, MapKit.MKMapView, MapKit.MKOverlayPathView, MapKit.MKOverlayView, MapKit.MKPinAnnotationView, MapKit.MKPolygonView, MapKit.MKPolylineView, MapKit.MKUserTrackingBarButtonItem, MediaPlayer.MPVolumeView, SceneKit.SCNView, SpriteKit.SKView, UIKit.UIActionSheet, UIKit.UIActivityIndicatorView, UIKit.UIAlertView, UIKit.UIBarButtonItem, UIKit.UIBarItem, UIKit.UIButton, UIKit.UICollectionReusableView, UIKit.UICollectionView, UIKit.UICollectionViewCell, UIKit.UIControl, UIKit.UIDatePicker, UIKit.UIImageView, UIKit.UIInputView, UIKit.UILabel, UIKit.UINavigationBar, UIKit.UIPageControl, UIKit.UIPickerView, UIKit.UIPopoverBackgroundView, UIKit.UIProgressView, UIKit.UIRefreshControl, UIKit.UIScrollView, UIKit.UISearchBar, UIKit.UISegmentedControl, UIKit.UISlider, UIKit.UIStepper, UIKit.UISwitch, UIKit.UITabBar, UIKit.UITabBarItem, UIKit.UITableView, UIKit.UITableViewCell, UIKit.UITableViewHeaderFooterView, UIKit.UITextField, UIKit.UITextView, UIKit.UIToolbar, UIKit.UIView, UIKit.UIVisualEffectView, UIKit.UIWebView, UIKit.UIWindow and WebKit.WKWebView.

Related content

Requirements

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