IProvideValueTarget.TargetProperty Property

Gets an identifier for the target property being reported.

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

Object TargetProperty { get; }

Property Value

Type: System.Object
An identifier for the target property being reported.

The value can be null; see Remarks in IProvideValueTarget.

The identifiers returned are not always PropertyInfo, although PropertyInfo is the most common expected return type. Specific variations are as follows:

  1. An attached property does not necessarily have a CLR property associated with it. Attached properties return the MethodInfo of their Set accessor helper method, implemented using the pattern XAML processors expect. For more information on the attached property accessor pattern, see Custom Attached Properties.

  2. Custom markup extensions can be applied to events, for scenarios such as returning a delegate or handler. For events, the identifier is EventInfo.


Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions