Setter.Setter(DependencyProperty, Object) constructor

Applies to Windows and Windows Phone

Initializes a new instance of the Setter class with initial Property and Value information.

Syntax


public Setter(
  DependencyProperty targetProperty, 
  object value
)

Parameters

targetProperty

Type: DependencyProperty

The dependency property identifier for the property that is being styled.

value

Type: System.Object [.NET] | Platform::Object [C++]

The value to assign to the value when the Setter applies.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

Setter
Setter

 

 

Show:
© 2014 Microsoft