IXRDataTemplate::LoadContent (Compact 2013)

3/28/2014

This function loads the content that defines the visual representation for the control that uses this IXRDataTemplate.

Syntax

virtual HRESULT STDMETHODCALLTYPE LoadContent(
    __out IXRDependencyObject** ppDependencyObject
) = 0;

Parameters

  • ppDependencyObject
    [out] Pointer to a pointer to the root object of the parsed content. This content defines the visual representation for the control that uses this IXRDataTemplate.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you call LoadContent, the objects in the IXRDataTemplate are created from the source XAML. You can add the objects to the visual tree of another object, such as an IXRContentControl, by calling IXRContentControl::SetContent.

.NET Framework Equivalent

System.Windows.DataTemplate.LoadContent

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRDataTemplate