This is a migrated thread and some comments may be shown as answers.

Add Item "No Selection" to itemlist

1 Answer 27 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 27 Aug 2010, 12:50 PM
Hi,

I use a combobox where a observable collection of a custom class is bind to. I would like to add two more Items:

1. "Add New"
2. "No Selection"

With first item user can add a new item to collection
With second one user will be able to select no items

How can add this to items.

Thanks,
Neils

1 Answer, 1 is accepted

Sort by
0
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 28 Aug 2010, 09:18 AM
Problem solved. Did not see the "ClearSelectionButtonVisibility" Property. Regarding the "Add New" topic, I just added a new instance of my class to the collection and put this to first. That's it!
Tags
ComboBox
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Heiko
Top achievements
Rank 1
Iron
Veteran
Share this question
or