Skip to main content
.NET Framework Class Library
Style Constructor (Type)

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

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)
Syntax
Public Sub New ( _
	targetType As [%$TOPIC/ms587957_en-us_VS_110_3_0_0_0_0%] _
)
public Style(
	[%$TOPIC/ms587957_en-us_VS_110_3_0_1_0_0%] targetType
)
public:
Style(
	[%$TOPIC/ms587957_en-us_VS_110_3_0_2_0_0%]^ targetType
)
new : 
        targetType:[%$TOPIC/ms587957_en-us_VS_110_3_0_3_0_0%] -> Style
public function [%$TOPIC/ms587957_en-us_VS_110_3_0_4_0_0%](
	targetType : [%$TOPIC/ms587957_en-us_VS_110_3_0_4_0_1%]
)

Parameters

targetType
Type: SystemType

The type to which the style will apply.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1