Method | Description | |
---|---|---|
Add ( string text, object value ) : |
Adds a new item to the combo-box.
|
|
ComboBoxViewModel ( ) : System | ||
Select ( int index ) : void |
Sets the element at the specified index as the currently SelectedItem. This method sets the SelectedItem to null if the 'index' is outside the range of 'Items'. |
|
SelectFirst ( ) : void |
Sets the first item in the collection as the currently SelectedItem.
|
|
SelectLast ( ) : void |
Sets the last item in the collection as the currently SelectedItem.
|
|
SelectValue ( object value ) : void |
Selects the item with the specified value (of sets the SelectedItem to null if the value does not exist within the 'Items' collection).
|
Method | Description | |
---|---|---|
OnSelectionChanged ( ) : void |
public Add ( string text, object value ) : |
||
text | string | The display text of the item. |
value | object | The value for the item. |
return |
public Select ( int index ) : void | ||
index | int | The index of the item to select. |
return | void |
public SelectValue ( object value ) : void | ||
value | object | The value to select. |
return | void |