コード例 #1
0
 public ThemePage()
 {
     InitializeComponent();
     Title = "Theme Page";
     BoxView.Background = ColorPallet.GetBackground();
     Task.Run(() => ColorPallet.AnimateBackground(BoxView));
 }
コード例 #2
0
 public SearchPageXama(ObservableCollection <SavedMovie> listOfSavedMovies)
 {
     InitializeComponent();
     BoxView.Background = ColorPallet.GetBackground();
     Task.Run(() => ColorPallet.AnimateBackground(BoxView));
     CollectionViewSearchPage.ItemsSource = listOfSavedMovies;
     BindingContext = this;
 }
コード例 #3
0
        public RatedMovie(SavedMovie movie)
        {
            InitializeComponent();
            MovieStack.BindingContext = movie;
            this.movie = movie;
            Genres     = new ObservableCollection <Genre>(movie.genres);
            Title      = movie.title;

            BoxView.Background = ColorPallet.GetBackground();
            Task.Run(() => ColorPallet.AnimateBackground(BoxView));
            Carousel.ItemsSource = Genres;
        }
コード例 #4
0
        public ProfilePage()
        {
            InitializeComponent();

            GoodMovies = User.GetInstance().GoodMovies;
            ListGoodMovies.ItemsSource = GoodMovies;

            BadMovies = User.GetInstance().BadMovies;
            ListBadMovies.ItemsSource = BadMovies;

            ICommand refreshCommand = new Command(() =>
            {
                RefreshGood.IsRefreshing = false;
                RefreshBad.IsRefreshing  = false;
            });

            RefreshGood.Command = refreshCommand;
            RefreshBad.Command  = refreshCommand;

            Task.Run(() => ColorPallet.AnimateBackground(BoxView));
        }
コード例 #5
0
 public SearchPageXama()
 {
     InitializeComponent();
     BoxView.Background = ColorPallet.GetBackground();
     Task.Run(() => ColorPallet.AnimateBackground(BoxView));
 }
コード例 #6
0
 public MainPage()
 {
     Task.Run(MakePopularMovies);
     InitializeComponent();
     Task.Run(() => ColorPallet.AnimateBackground(BoxView));
 }