views:

342

answers:

1

Hi,

I'm hopefully missing something extremely obvious here, but for the life of me I can't figure this out.

I have an AutoCompleteBox control that is retrieving results by way of an asynchronous call, although I can't find a reliable way in which to know when a user has selected an option from the list of returned values. I've tried hooking into the SelectionChanged event, but that fires on every movement within the autocomplete's drop down list, when what I actually want to know is when a user has definitively said "Hey, that's the item I want!" by either clicking it, or selecting it with the return key.

Any advice would be greatly appreciated as this is starting to drive me a tad crazy now. =)

Thanks

P.S. The SelectionChanged event arguments provide AddedItems and RemovedItems, but don't give any direct indication of the type of selection I'm looking for.

A: 

There isn't a specific event that indicates that the used has specifically plumped for an option rather then merely browsing.

For you scenario the closest you can get is DropDownClosed or even LostFocus events then access the SelectedItem property.

AnthonyWJones