Style(Type) 构造函数

定义

初始化新的 Style 实例。

public:
 Style(Type ^ targetType);
public Style (Type targetType);
new Microsoft.Maui.Controls.Style : Type -> Microsoft.Maui.Controls.Style
Public Sub New (targetType As Type)

参数

targetType
Type

将应用样式的视图类型。

适用于