async void Configure(ListCell cell, ListInfo listInfo) { // Show an empty string as the text since it may need to load. cell.Label.Text = string.Empty; cell.Label.Font = UIFont.PreferredBody; cell.ListColorView.BackgroundColor = UIColor.Clear; cell.BackgroundColor = UIColor.Cyan; await listInfo.FetchInfoAsync(); cell.Label.Text = listInfo.Name; cell.ListColorView.BackgroundColor = AppColors.ColorFrom(listInfo.Color.Value); }
public async void ConfigureWith(ListInfo listInfo) { await listInfo.FetchInfoAsync(); if (document != null) { document.DocumentDeleted -= OnListDocumentWasDeleted; document.Close(null); } document = new ListDocument(listInfo.Url); document.DocumentDeleted += OnListDocumentWasDeleted; NavigationItem.Title = listInfo.Name; TextAttributes = new UIStringAttributes { Font = UIFont.PreferredHeadline, ForegroundColor = AppColors.ColorFrom(listInfo.Color.Value) }; }