Share via


IXRItemsControl::GetItemsSource (Compact 2013)

3/28/2014

This method retrieves a collection that is used to generate the content of the items control.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetItemsSource(
    __out IXREnumerable** ppItemsSource
) = 0;

Parameters

  • ppItemsSource
    [out] Pointer to a pointer to an IXREnumerable object that is used to generate the content of the items control. The default is null.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If the items source object implements the IXRNotifyCollectionChanged interface, changes in the collection will be reflected in the IXRItemsControl in the UI of your application.

If the ItemsSource property is not null, the items in the Items property are read-only.

.NET Framework Equivalent

System.Windows.Controls.ItemsControl.ItemsSource

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRItemsControl
IXRItemsControl::SetItemsSource