UIView.TintColor Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A highlight color which should be used to indicate interactive controls.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIColor TintColor { [Foundation.Export("tintColor")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setTintColor:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.TintColor : UIKit.UIColor with get, set
(More documentation for this node is coming)
This value can be null
.
- Attributes
Starting in iOS 7, application developers should use TintColor to indicate interaction elements within their UI. P:UIKit.UIView.TintColor is hierarchical; that is, setting the TintColor on a top-level UIView will carry through to child views until the TintColor is overridden.
When a UIActionSheet is displayed, visible UIViews will have their tint grayed out (desaturated), indicating to the application user that they must interact with the UIActionSheet. Application developers who wish to customize the desaturation of their UIViews should override the TintColorDidChange() method.
This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.