This documentation is archived and is not being maintained.
ContentControl.HasContent Property
Visual Studio 2008
Gets a value that indicates whether the ContentControl contains content. This is a dependency property.
Assembly: PresentationFramework (in PresentationFramework.dll)
'Declaration <BrowsableAttribute(False)> _ Public ReadOnly Property HasContent As Boolean 'Usage Dim instance As ContentControl Dim value As Boolean value = instance.HasContent
You cannot set this property in XAML.
Property Value
Type: System.Booleantrue if the ContentControl has content; otherwise false. The default value is false.
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.
Show: