Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
585
What's the SelectedItem for xamComBoEditor if mutiple-selection allowed?
posted

SL ComboBox SelectedItem is bound to a single object.

What's the SelectedItem for xamComBoEditor if mutiple-selection allowed?

how to set up binding for SelectedItem  and how to get the selected items in code from xamComBoEditor if AllowMultipleSelection is set as true?

Parents
  • 12631
    posted

    XamComboBoxEditor.SelectedItem works exactly like the native ListBox.SelectedItem.  It returns the first object from the controls SelectedItems collection, equivelent to:

    xamComboEditor.SelectedItems[0]

    the SelectedItems collection gives you all of the currently selected items.

    You can set up a twoway binding on the controls SelectedItem property.

    Devin

Reply Children