Share via


IXRItemsControl::SetDisplayMemberPath (Compact 2013)

3/28/2014

This method sets the name or path of the property that is displayed for each data item in this control.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetDisplayMemberPath(
    __in const WCHAR* pDisplayMemberPath
) = 0;

Parameters

  • pDisplayMemberPath
    [in] Pointer to a string that specifies the name or path of the property that is displayed for each data item in the control. The default value is an empty string ("").

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The string in pDisplayMemberPath can use a dotted path (a property string of the form property.subproperty…) to reference subproperties of properties.

You can set the DisplayMemberPath property in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the ItemsControl.DisplayMemberPath Property on MSDN.

.NET Framework Equivalent

System.Windows.Controls.ItemsControl.DisplayMemberPath

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRItemsControl