ContentPropertyAttribute

AttributeReferences
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public sealed class ContentPropertyAttribute : Attribute
Attribute to indicate which property of a type is the content property
Remarks: Used for compatibility with XAML.

Constructors

ContentPropertyAttribute

#
public ContentPropertyAttribute()
Initializes a new instance of the ContentPropertyAttribute class

ContentPropertyAttribute

#
public ContentPropertyAttribute(string name)
Initializes a new instance of the ContentPropertyAttribute class with the specified name
name (string)Name of the property that should be used as the content property

Properties

Name

#
public string Name { get; }
Gets the name of the property to use as the content property