Edit

Share via


Setter Constructors

Definition

Initializes a new instance of the Setter class.

Overloads

Setter()

Initializes a new instance of the Setter class.

Setter(DependencyProperty, Object)

Initializes a new instance of the Setter class with the specified property and value.

Setter(DependencyProperty, Object, String)

Initializes a new instance of the Setter class with the specified property, value, and target name.

Setter()

Initializes a new instance of the Setter class.

C#
public Setter();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Setter(DependencyProperty, Object)

Initializes a new instance of the Setter class with the specified property and value.

C#
public Setter(System.Windows.DependencyProperty property, object value);

Parameters

property
DependencyProperty

The DependencyProperty to apply the Value to.

value
Object

The value to apply to the property.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Setter(DependencyProperty, Object, String)

Initializes a new instance of the Setter class with the specified property, value, and target name.

C#
public Setter(System.Windows.DependencyProperty property, object value, string targetName);

Parameters

property
DependencyProperty

The DependencyProperty to apply the Value to.

value
Object

The value to apply to the property.

targetName
String

The name of the child node this Setter is intended for.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10