IXRContentControl::SetContent (Windows Embedded CE 6.0)
1/6/2010
This method sets the object that represents the content that is displayed inside this control.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetContent(
XRValue* pContent
) = 0;
Parameters
- pContent
[in] Pointer to an XRValue object that represents the new content that is displayed inside this control.
Return Value
Returns an HRESULT that indicates success or failure.
Returns XR_E_INVALID_OBJECT if pContent is not a Silverlight object.
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 is set to an IXRUIElement derived object, the object is displayed inside the content control. When pContent is set to 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 |