How do I get the listbox selected value and listpicker selected value in OnNavigated method, I have list picker and listbox binded with items that come from web service response, I know how to get listbox and list picker selected value in selection changed event, but how do I get those values in other events? Thanks!!
void client_live_permissionCompleted(object sender, ServiceReference1.live_permissionCompletedEventArgs e)
{
LIST data = (sender as ListBox).SelectedItem as LIST;
long id = data.Id;
string name = data.Name;
}
but I debug it, it is showing error.