Xamarin.Forms Guides | Samples

Xamarin.Forms.Style.TargetType Property

Gets the type of object that this style can describe. See Remarks.

Syntax

public Type TargetType { get; }

Remarks

Developers should be aware that implicit styles are only applied to the specific type that is described by Style.TargetType, and not to types that inherit from it.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0