Style Class
Definition
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.
Groups property setters that can be shared between multiple visual elements.
public ref class Style sealed
[Microsoft.Maui.Controls.ContentProperty("Setters")]
public sealed class Style
[<Microsoft.Maui.Controls.ContentProperty("Setters")>]
type Style = class
Public NotInheritable Class Style
- Inheritance
-
Style
- Attributes
Constructors
| Name | Description |
|---|---|
| Style(Type) |
Initializes a new instance of the Style class. |
Properties
| Name | Description |
|---|---|
| ApplyToDerivedTypes |
Gets or sets whether the style can be applied to types derived from TargetType. |
| BasedOn |
Gets or sets the style from which this style inherits. |
| BaseResourceKey |
Gets or sets the resource key for the base style. |
| Behaviors |
Gets the collection of Behavior objects attached to this style. |
| CanCascade |
Gets or sets whether this style can cascade to nested elements. |
| Class |
Gets or sets the class name for the style. |
| Setters |
Gets the collection of Setter objects that define the property values for this style. |
| TargetType |
Gets the type to which this style applies. |
| Triggers |
Gets the collection of TriggerBase objects attached to this style. |