Class ContentPropertyAttribute
An attribute that specifies which property the direct content of a XAML element should be associated with.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class ContentPropertyAttribute : Attribute
- Inheritance
-
ContentPropertyAttribute
Constructors
- ContentPropertyAttribute()
Creates a new content property attriubte that indicates that associated class does not have a content property attribute. This allows a descendent remove an ancestors declaration of a content property attribute.
- ContentPropertyAttribute(string)
Creates a new content property attribute that associates the direct content of XAML content with property of the given name
Properties
- Name
The name of the property that is associated with direct XAML content