# ContentPropertyAttribute class

Namespace: [Eto](https://eto.picoe.ca/api/namespace/eto.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[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](https://eto.picoe.ca/api/type/eto.contentpropertyattribute/ctor.md): (2 overloads) Initializes a new instance of the ContentPropertyAttribute class

## Properties

- [Name](https://eto.picoe.ca/api/type/eto.contentpropertyattribute/name.md): Gets the name of the property to use as the content property
