Share via


IXRItemsControl::GetItems (Compact 2013)

3/28/2014

This method retrieves the collection that provides the content of this control.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetItems(
    __out IXRItemCollection** ppItems
) = 0;

Parameters

  • ppItems
    [out] Pointer to a pointer to an IXRItemCollection object that represents the collection that provides the content of the control.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can add items to an IXRItemsControl object by adding the items to ppItems, the retrieved IXRItemCollection object. To add an item, create an XRValue and set its vType property to VTYPE_OBJECT. For example, you can add XRValue objects to an IXRItemCollection that represent IXRListBoxItem, IXRComboBoxItem, or IXRTextBox objects.

.NET Framework Equivalent

System.Windows.Controls.ItemsControl.Items

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRItemsControl