次の方法で共有


IXRUserControl::SetContent (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRUserControl
IXRUserControl::GetContent