private async Task LoadDataAsync() { SampleItems.Clear(); var service = new SampleModelService(); var data = await service.GetDataAsync(); foreach (var item in data) { SampleItems.Add(item); } Selected = SampleItems.First(); }
public async Task LoadDataAsync(VisualState currentState) { _currentState = currentState; SampleItems.Clear(); var service = new SampleModelService(); var data = await service.GetDataAsync(); foreach (var item in data) { SampleItems.Add(item); } Selected = SampleItems.First(); }