Compartilhar via


IXRContentPresenter::GetContent (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetContent(
    __out XRValue* pContent
) = 0;

Parameters

  • pContent
    [out] 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.

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::SetContent