Share via


IXRContentControl::GetContent (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the object that represents the content that is displayed inside this control.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetContent(
    XRValue* pContent
) = 0;

Parameters

  • pContent
    [out] Pointer to an XRValue object that represents the content that is displayed inside this control.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The pContent parameter can be any kind of object, such as a text string, or an IXRUIElement derived object. The IXRContentControl object displays its content on-screen, inside its bounding frame. When pContent represents an IXRUIElement derived object, the object is displayed inside the content control. When pContent is another kind of object, a string representation of the object is displayed inside the content control.

.NET Framework Equivalent

System.Windows.Controls.ContentControl.Content

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRContentControl
IXRContentControl::SetContent