ContentPropertyAttribute Constructor (String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the ContentPropertyAttribute class, using the specified content property name.

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

Syntax

Public Sub New ( _
    name As String _
)
public ContentPropertyAttribute(
    string name
)

Parameters

Remarks

Within the context of an owning type, just the name must be enough to identify its content property.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

ContentPropertyAttribute Class

ContentPropertyAttribute Overload

System.Windows.Markup Namespace