void client_GetMenuCompleted(object sender, GetMenuCompletedEventArgs e) { List<MenuItemContainer> source = new List<MenuItemContainer>(); foreach (var item in e.Result) { source.Add(new MenuItemContainer(new MenuItem(){Text = item.Text, Id = item.Id})); } lstMenuItems.ItemsSource = source; }
void client_GetMenuCompleted(object sender, GetMenuCompletedEventArgs e) { List <MenuItemContainer> source = new List <MenuItemContainer>(); foreach (var item in e.Result) { source.Add(new MenuItemContainer(new MenuItem() { Text = item.Text, Id = item.Id })); } lstMenuItems.ItemsSource = source; }
void client_GetMenuCompleted(object sender, GetMenuCompletedEventArgs e) { }