示例#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
 private void CollectionView_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     ColorPallet.ChangeColorTheme(e.CurrentSelection.FirstOrDefault() as string);
     BoxView.Background = ColorPallet.GetBackground();
 }
示例#5
0
 public SearchPageXama()
 {
     InitializeComponent();
     BoxView.Background = ColorPallet.GetBackground();
     Task.Run(() => ColorPallet.AnimateBackground(BoxView));
 }
示例#6
0
 protected override void OnAppearing()
 {
     AnimationView.Animation = "Movie.json";
     BoxView.Background      = ColorPallet.GetBackground();
 }
示例#7
0
 protected override void OnAppearing()
 {
     BoxView.Background = ColorPallet.GetBackground();
 }