IXRItemsControl::SetItemTemplate (Compact 2013)

3/28/2014

This method sets the IXRDataTemplate object that is used to display each item in this control.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetItemTemplate(
    __in IXRDataTemplate* pItemTemplate
) = 0;

Parameters

  • pItemTemplate
    [in] Pointer to the IXRDataTemplate object that is used to display each item in the control.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To specify the visual representation of your items, you can specify a pointer to an IXRDataTemplate object in a call to SetItemTemplate. The content of your IXRDataTemplate object becomes the visual structure of the items in the control.

.NET Framework Equivalent

System.Windows.Controls.ItemsControl.ItemTemplate

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRItemsControl