ValuePath Property (XamComboEditor)

Specifies the path into the selected item from which to get the data value. The Value property will return values from this path.
Public Property ValuePath As String
public string ValuePath {get; set;}

ValuePath specifies the list object property to use to get the value for the editor. When an item is selected from the drop-down, the SelectedItem property returns the item itself. The Value property returns the value of the property specified by ValuePath from that selected item.

NOTE: If you set the ItemsProvider property to an instance of ComboBoxItemsProvider object then specify the ValuePath and DisplayMemberPath properies on that object. In that case these properties on the editor will be ignored as ItemsProvider supercedes these properties.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also