Deselect an Item on SilverLight

Sometime you may find it useful to de-select an Item on ComboBox,
when you try to force a user to pick one from the list.

Here it is the code sample to deselect a selected item on ComboBox in Silverlight.
[Just need to set the selected Index to -1]


Hope you find it useful.

2 thoughts on “Deselect an Item on SilverLight

  1. Anonymous

    it does not work ; as I put the value = -1 it just do nothing and I cannot select that item anymore . Even though I will select, it will not raise SelectionChange event handler.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.