Skip to main content
Style Constructor
 

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

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

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

Parameters

targetType
Type:

The type to which the style will apply.

basedOn
Type:

The style to base this style on.

.NET Framework
Available since 3.0
Return to top