public override async Task LoadAsync(Project project) { if (project != Project) { await base.LoadAsync(project); filesViewer.Project = project; await filesViewer.SetFilesAsync(null, null, FileCollectionType.None); } List <Class> classes = null; await Task.Run(() => { HashSet <string> formats = new HashSet <string>(); classes = ClassUtility.GetClasses(project); foreach (var item in classes) { formats.Add(item.DisplayNameFormat); formats.Add(item.DisplayProperty1); formats.Add(item.DisplayProperty2); formats.Add(item.DisplayProperty3); } var csFormats = formats.Where(p => p != null && p.StartsWith("cs:")); DisplayFormatConverter.InitializeCsMethods(csFormats); }); await classPanel.LoadAsync(project, classes); UpdateAppBarButtonsEnable(); }