Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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


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.


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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.