IXRContentControl::GetContent (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetContent(
    __out 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 object derived from IXRUIElement. The IXRContentControl object displays its content on the screen, inside its bounding frame. When pContent represents an object derived from IXRUIElement, the object is displayed inside the content control. When pContent represents another kind of object, a string representation of the object is displayed inside the content control.

To use any supported value type, such as a float value, you can use the helper template version of this method that XAML for Windows Embedded provides. When you supply a value type, this version automatically supplies a type-safe method that implicitly converts the returned type from a generic XRValue to the appropriate data type.

.NET Framework Equivalent

System.Windows.Controls.ContentControl.Content

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRContentControl
IXRContentControl::SetContent