Posted 14 June 2018, 6:24 pm EST
Hello Mark,
As per our understanding, you wish that when you click on drop down button, the list should appear but there should be no items selected in it?
If that is so, then I would like to inform you that it is not possible. The SelectedItem in the list and the display text are linked to each other, so if we remove the selected item from the list then it would also remove the display text of the control. Do let me know, if you are fine with it.
Also, I could not think of any scenario that needs such requirement. So, request you to please share your use-case, so that we could help you better.
Re. programmatically adding/removing nodes, you can directly assign the items to the SelectedItemsas follows:```
_multi.UnSelectAll();
IEnumerable list=new string { “One”, “Two”, “Three” };
_multi.SelectedItems = list;
_multi.IsDroppedDown = true;
Also, I tried invoking [i]UnSelectAll [/i]method->setting [i]SelectedIndex [/i]property, and doing this, the display text correctly shows the text of the SelectedIndex item.
Attached is a sample application for you refer.
Thanks,
Ruchir
[zip filename="prj_WPFMultiSelect.zip"]https://gccontent.blob.core.windows.net/forum-uploads/file-f887fa03-5f24-4922-a29b-527d27e31386.zip[/zip]