IXRItemsControl::GetItemTemplate (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetItemTemplate(
    __out IXRDataTemplate** ppItemTemplate
) = 0;

Parameters

  • ppItemTemplate
    [out] Pointer to a pointer to an 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 an IXRDataTemplate in a call to IXRItemsControl::SetItemTemplate. You use an IXRDataTemplate to define the appearance of your items. The content of your IXRDataTemplate 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