Partager via


IXRUserControl::SetContent (Compact 2013)

3/28/2014

This method sets the object that represents the content to display inside this control.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetContent(
    IXRUIElement *pContent
) = 0;

Parameters

  • pContent
    [in] Pointer to an IXRUIElement derived object that represents the content to display inside this control.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The object in pContent can represent a parent node of a branch of the element tree that contains new child content for this control.

The object in pContent, together with its contents, is displayed on-screen inside the IXRUserControl control.

.NET Framework Equivalent

System.Windows.Controls.UserControl.Content

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUserControl
IXRUserControl::GetContent