protected async override Task LoadState(LoadStateEventArgs e) { // TODO: Assign a bindable collection of items to this.DefaultViewModel["Items"] var newFiles = new ObservableCollection <IDataItem>(); newFiles.Add(new OpenFileItem()); foreach (var item in LanguageSupport.GetItemsNewFile()) { newFiles.Add(item); } this.DefaultViewModel["NewFiles"] = newFiles; var recentFiles = new ObservableCollection <IDataItem>(); // recentFiles.Add(new RecentFile(fullPath: "C:/test/abc.txt", printErrors: true)); foreach (RecentFile file in FileStorage.RecentFiles) { file.PrintErrors = true; await file.Check(); recentFiles.Add(file); } this.DefaultViewModel["RecentFiles"] = recentFiles; }