Intersoft.Client.UI.Data Namespace > UXMultipleSelectionComboBox Class : SelectedItemConverter Property |
Public Property SelectedItemConverter As IValueConverter
Dim instance As UXMultipleSelectionComboBox Dim value As IValueConverter instance.SelectedItemConverter = value value = instance.SelectedItemConverter
public IValueConverter SelectedItemConverter {get; set;}
public: property IValueConverter^ SelectedItemConverter { IValueConverter^ get(); void set ( IValueConverter^ value); }
The collection of data that has been selected will be assigned to the SelectedItems property. To get the selected items collection or initialize the selected items, you can easily bind the property from your ViewModel to the SelectedItems property of UXMultipleSelectionComboBox. For more details on how to initialize selected items, see How to Initialize Selected Items in UXMultipleSelectionComboBox.
With SelectedItemConverter property, it allows you to bind a collection of items where the selected item type is different with the search result type. Note that you should set the SelectedValuePath property of UXMultipleSelectionComboBox for the selected items to work properly.
This feature is particularly useful in such a scenario that you want to display the records from a table but you must bind it from another table that logically linked to a foreign key. In this case, you just need to assign the foreign key path to the SelectedValuePath property and UXMultipleSelectionComboBox will do the rest for you. You can see How to Implement Selected Items Converter in UXMultipleSelectionComboBox to learn more about this feature.
Target Platforms: Windows 7, 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