UXSearchBox - What event to use after selection has been made?

3 replies. Last post: September 12, 2011 3:57 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
ChazmanianMember

I have bindings set up with an autoincremental search using the UXSearchBox. I follow the samples pretty closely except that I am actually using a service call to populate the SearchResult.

While I do need to navigate to a different page once a selection is made (just as the samples do) I also need to execute some code that uses the SelectedItem value (once again I am binding that using a ViewModel).

My question is, then, what event fires after the user locks in a selection? The SelectionChanged event occurs while a user navigates through the dropdown...there is no Selecteditem chosen yet. I tried the Closed event but that doesn't seem to fire for some reason.

I have been able to use the KeyUp event and filter for the Enter key, so I can get the SelectedItem if the user isn't using the mouse to select an item from the dropdown. I've tried to use LeftMouseButtonUp to capture the selection with the mouse but that hasn't worked for me.

So, is there an event specific to the UXSearchBox that I can use to execute some code upon the actual locked-in selection of an item from the dropdown and to then navigate to another page? If not, could someone tell me how to get the Closed event or even the MouseLeftButtonUp event to work to capture that selected item?

Thanks for any help at all.

All times are GMT -5. The time now is 9:37 AM.
Previous Next