This documentation is archived and is not being maintained.

MarkupProperty.IsContent Property

When overridden in a derived class, determines whether this MarkupProperty represents direct content of a collection.

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

public virtual bool IsContent { get; }
You cannot set this property in XAML.

Property Value

Type: System.Boolean
true if the property represents direct content; otherwise, false.

The default behavior is to return false.

When IsContent is true, PropertyDescriptor and DependencyProperty are both null.

Dictionaries are included when determining whether this MarkupProperty represents direct content.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0