/// <summary> /// Updates the user interface to match the content. /// </summary> private void UpdateUserInterfaceFromContent() { BackgroundImageView.SetImageBitmap(BackgroundImage); MenuBarView.SetButtons(MenuData.Buttons.Select(b => b.Title).ToList()); MenuBarView.RequestFocus(); }
/// <summary> /// Updates the user interface to match our content. /// </summary> private void UpdateUserInterfaceFromContent() { BackgroundImageView.SetImageBitmap(BackgroundImage); TitleView.Text = PosterData.Title; // // Initialize the adapter list. // PosterItemsAdapter.Clear(); foreach (var item in PosterData.Items) { PosterItemsAdapter.Add(item.Title); } // // Notify the list view that the content has changed and give it // input focus. // PosterItemsAdapter.NotifyDataSetChanged(); PosterItems.RequestFocus(); }
/// <summary> /// Updates the user interface to match the content. /// </summary> private void UpdateUserInterfaceFromContent() { BackgroundImageView.SetImageBitmap(BackgroundImage); BackgroundImageView.RequestFocus(); }