Dela via


ItemsControl.DisplayMemberPath Property

Definition

Gets or sets the name or path of the property that is displayed for each data item.

public:
 property Platform::String ^ DisplayMemberPath { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring DisplayMemberPath();

void DisplayMemberPath(winrt::hstring value);
public string DisplayMemberPath { get; set; }
var string = itemsControl.displayMemberPath;
itemsControl.displayMemberPath = string;
Public Property DisplayMemberPath As String
<itemsControl DisplayMemberPath="propertyPath"/>

Property Value

String

Platform::String

winrt::hstring

The name or path of the property that is displayed for each the data item in the control. The default is an empty string ("").

Applies to