Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ContentControl.Content property

Applies to Windows and Windows Phone

Gets or sets the content of a ContentControl.

Syntax

Public Property Content As Object

<contentControl>
    singleObject
</contentControl>
-or-
<contentControl>stringContent</contentControl>


<contentControl Content="stringContent"/>

XAML Values

contentControl

A ContentControl object element, or an object element for a class that derives from ContentControl.

singleObject

A single object element that declares the content. Typically this is a class that can support further content as child elements, such as a Panel class.

stringContent

A string that is the Content of the ContentControl.

Property value

Type: System.Object [.NET] | Platform::Object [C++]

An object that contains the control's content. The default is null.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ContentControl

 

 

Show:
© 2014 Microsoft