Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PropertyPath Constructor (Object)
Collapse the table of content
Expand the table of content

PropertyPath Constructor (Object)

Initializes a new instance of the PropertyPath class.

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

public PropertyPath(
	Object parameter
)

Parameters

parameter
Type: System.Object
A dependency property identifier, or a property path string.

In Silverlight 5, you typically construct a PropertyPath based on a string, regardless of intended usage. See Property Path Syntax for a guide to constructing a PropertyPath based on a string, with separate syntax guidance for each usage.

This signature supports compatibility with a WPF convention of constructing a PropertyPath that represents a single dependency property by specifying its dependency property identifier, rather than a property-path string. If you use this convention, then parameter should be a dependency property identifier (a static DependencyProperty).

Important noteImportant Note:

If you construct a PropertyPath from a DependencyProperty, that PropertyPath is not usable as a Binding.Path. The Path value for the constructed PropertyPath is the string value (0), which is a sentinel value used by the binding engine for an invalid path.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

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

Community Additions

ADD
Show:
© 2015 Microsoft