The sample demonstrates the creation of a simple ListBox based on a collection. “Add” button is available only when some text is entered in the textbox — such behavior is provided by the Enable data binding
ListBox
Enable