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.
Class that contains triggers, setters, and behaviors that completely or partially define the appearance and behavior of a class of 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
Style(Type) |
Intitializes a new Style instance. |
Properties
ApplyToDerivedTypes |
Gets or sets a Boolean value that controls whether the style should be applied to controls that are derived from the base type. |
BasedOn | |
BaseResourceKey |
Gets or sets the key that identifies the Style on which this Style is based. |
Behaviors |
Gets the list of Behavior objects that belong to this Style. |
CanCascade |
Gets or sets a Boolean value that controls whether, when applying an explicit style to a control, an implicit style that targets the same control should also be applied. |
Class |
Gets or sets the class for the style. |
Setters | |
TargetType |
Gets the type of object that this style can describe. See Remarks. |
Triggers |
Applies to
.NET MAUI
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기