public AuthorChooserPage() : base("اختر الكاتب ") { this.Content = App.LoadingImage; this.authorsGrid = new AuthorsGrid(); this.layout = new StackLayout { Padding = Constants.DefaultPadding, Orientation = StackOrientation.Vertical, VerticalOptions = LayoutOptions.CenterAndExpand }; layout.Children.Add(authorsGrid); }
private async Task OnAuthorChanged(AuthorsGrid sender, Author author) { if (this.readingInfo.Author != author) { this.readingInfo.Author = author; await this.Initialize(this.readingInfo); } }