User Profile & Activity

Member

Handy

Thanks for the quick response, but I'm already binding SelectedItem as you have described. Here is a brief summary of the problem I face and why I want to execute code upon selection.

I am using the UXSearchBox as a globally available incremental search control. It sits on the main page toolbar and there are frames that appear as separate pages as they are navigated to within the application. So, once a selection is chosen from the UXSearchBox, I want to set an application-level property to the object represented by the selected item from the search. Then I want to navigate to a page that will in turn use that object to populate itself and to further call for other data from our services related to the ID of that object.

Right now it looks like the only alternative I may have is to use a ViewModel that is globally available and attach that to the DataContext of the search control. In other words, instantiate this global ViewModel at app startup and pass it along to the search conrol in some way.

Any other ideas?

 

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