Compartir a través de


IXRContentPresenter::SetContent (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE SetContent(
    __in XRValue * pContent
) = 0;

Parameters

  • pContent
    Pointer to an XRValue object that represents the content to display inside this content presenter.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To set pContent to NULL, use the following syntax:

pControl->SetContent((XRValue*)NULL);

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.ContentPresenter.Content

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRContentPresenter
IXRContentPresenter::GetContent