Beispiel #1
0
        /// <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();
        }
Beispiel #2
0
        /// <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();
        }
Beispiel #3
0
 /// <summary>
 /// Updates the user interface to match the content.
 /// </summary>
 private void UpdateUserInterfaceFromContent()
 {
     BackgroundImageView.SetImageBitmap(BackgroundImage);
     BackgroundImageView.RequestFocus();
 }