次の方法で共有


PropertyPath Constructor (Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the PropertyPath class.

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

Syntax

'Declaration
Public Sub New ( _
    parameter As Object _
)
public PropertyPath(
    Object parameter
)

Parameters

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

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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