protected override void BindModelFull()
        {
            if ((string)AnimeListItemImage.Tag != ViewModel.ImgUrl)
            {
                AnimeListItemImage.AnimeInto(ViewModel.ImgUrl, AnimeListItemImgPlaceholder);
            }
            else
            {
                AnimeListItemImage.Visibility = ViewStates.Visible;
            }



            if (ViewModel.Auth)
            {
                AnimeListItemWatchedButton.Clickable = true;
                AnimeListItemWatchedButton.Focusable = true;
                AnimeListItemWatchedButton.SetCommand("Click", new RelayCommand(ShowWatchedDialog));
            }
            else
            {
                AnimeListItemWatchedButton.Clickable = false;
                AnimeListItemWatchedButton.Focusable = false;
            }


            ViewModel.AnimeItemDisplayContext = ViewModelLocator.AnimeList.AnimeItemsDisplayContext;

            ViewModel.PropertyChanged += ViewModelOnPropertyChanged;
        }
Exemple #2
0
        protected override void InitOneTimeBindings()
        {
            AnimeListItemTitle.Text = ViewModel.Title;


            if (!Fling && (int)Container.Tag != ViewModel.Id)
            {
                AnimeListItemImgPlaceholder.Visibility = ViewStates.Gone;
                AnimeListItemImage.AnimeInto(ViewModel.ImgUrl);

                Container.SetOnClickListener(new OnClickListener(view => ContainerOnClick()));

                ViewModel.AnimeItemDisplayContext = ViewModelLocator.AnimeList.AnimeItemsDisplayContext;

                Container.Tag = ViewModel.Id;
            }
            else
            {
                AnimeListItemImage.Visibility          = ViewStates.Invisible;
                AnimeListItemImgPlaceholder.Visibility = ViewStates.Visible;
            }
        }