Redigeeri

Jagamisviis:


Style Constructors

Definition

Initializes a new instance of the Style class.

Overloads

Style()

Initializes a new instance of the Style class.

Style(Type)

Initializes a new instance of the Style class to use on the specified Type.

Style(Type, Style)

Initializes a new instance of the Style class to use on the specified Type and based on the specified Style.

Style()

Initializes a new instance of the Style class.

public:
 Style();
public Style ();
Public Sub New ()

Remarks

This constructor call requires delayed validation of TargetType and BasedOn style type. If this is used outside the context of the parser, behavior is undefined.

Applies to

Style(Type)

Initializes a new instance of the Style class to use on the specified Type.

public:
 Style(Type ^ targetType);
public Style (Type targetType);
new System.Windows.Style : Type -> System.Windows.Style
Public Sub New (targetType As Type)

Parameters

targetType
Type

The type to which the style will apply.

Applies to

Style(Type, Style)

Initializes a new instance of the Style class to use on the specified Type and based on the specified Style.

public:
 Style(Type ^ targetType, System::Windows::Style ^ basedOn);
public Style (Type targetType, System.Windows.Style basedOn);
new System.Windows.Style : Type * System.Windows.Style -> System.Windows.Style
Public Sub New (targetType As Type, basedOn As Style)

Parameters

targetType
Type

The type to which the style will apply.

basedOn
Style

The style to base this style on.

Applies to