Example #1
0
        public AuthorView()
        {
            InitializeComponent();

            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.Fade);
            SharedTransitionNavigationPage.SetSharedTransitionDuration(this, 500);
        }
        public Page2()
        {
            InitializeComponent();

            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.None);
            SharedTransitionNavigationPage.SetSharedTransitionDuration(this, 500);
        }
        public AuthorView()
        {
            InitializeComponent();
            BindingContext = new AuthorViewModel();

            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.Fade);
            SharedTransitionNavigationPage.SetTransitionDuration(this, 500);
        }
Example #4
0
        private async void ItemsListView_ItemTapped(object sender, ItemTappedEventArgs e)
        {
            var tappedItemData = e.Item as Item;

            //this is required in order to pass the views to animate
            SharedTransitionNavigationPage.SetTransitionSelectedGroup(this, tappedItemData.Id);
            SharedTransitionNavigationPage.SetTransitionDuration(this, 200);
            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.Flip);
            await Navigation.PushAsync(new ItemDetailPage(tappedItemData));
        }
Example #5
0
        public MainPage()
        {
            InitializeComponent();

            if (Device.RuntimePlatform == "Android")
            {
                NavigationPage.SetHasNavigationBar(this, false);
            }

            SharedTransitionNavigationPage.SetTransitionDuration(this, 500);
            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.None);
        }
Example #6
0
        public MainSelectionPage()
        {
            NavigationPage.SetHasNavigationBar(this, false);
            NavigationPage.SetHasBackButton(this, false);
            InitializeComponent();

            ThemeHelper.ChangeTheme("dark");
            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.Fade);
            SharedTransitionNavigationPage.SetTransitionDuration(this, 500);

            LoadWordOfTheDay();
        }
        public ConfigureRoomPage(Room model)
        {
            InitializeComponent();
            (BindingContext as ConfigureRoomViewModel).SetRoom(model);

            if (Device.RuntimePlatform == "Android")
            {
                NavigationPage.SetHasNavigationBar(this, false);
            }

            SharedTransitionNavigationPage.SetTransitionDuration(this, 500);
            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.None);
        }
        private void ItemChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.CurrentSelection.Count == 0)
            {
                return;
            }

            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.SlideFromRight);
            SharedTransitionNavigationPage.SetTransitionDuration(this, 500);

            Navigation.PushAsync(new LearningPage(e.CurrentSelection[0] as LearningType));
            ((CollectionView)sender).SelectedItem = null;
        }
Example #9
0
        public TabbedPage()
        {
            InitializeComponent();
            this.BindingContext = this;
            if (Settings.AppPrefrences.AppTheme.Equals(Xamarin.Essentials.AppTheme.Light))
            {
                IconImg.IconImageSource = "ic_light.png";
            }
            else
            {
                IconImg.IconImageSource = "ic_dark.png";
            }

            // GetThemeSetting();
            List <TabItem> tabs = new List <TabItem>();

            tabs.Add(new TabItem()
            {
                Id = 1, Icon = "ic_home.png", SelectedIcon = "ic_logo.png", Name = "Inicio",
            });
            tabs.Add(new TabItem()
            {
                Id = 2, Icon = "ic_list.png", SelectedIcon = "ic_logo.png", Name = "GloboList",
            });
            tabs.Add(new TabItem()
            {
                Id = 3, Icon = "ic_search.png", SelectedIcon = "ic_logo.png", Name = "Buscar",
            });
            tabs.Add(new TabItem()
            {
                Id = 4, Icon = "ic_profile.png", SelectedIcon = "ic_logo.png", Name = "Perfil"
            });

            BottomTabBarContainer.TabItemsSource = tabs;
            _ = LoadData();
            stack.IsVisible = false;
            SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.Fade);
            SharedTransitionNavigationPage.SetTransitionDuration(this, 500);
        }
Example #10
0
 public Page1()
 {
     InitializeComponent();
     SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.SlideFromTop);
     SharedTransitionNavigationPage.SetSharedTransitionDuration(this, 500);
 }
 private void SetPageAnimation(BackgroundAnimation animation, long time)
 {
     SharedTransitionNavigationPage.SetBackgroundAnimation(this, animation);
     SharedTransitionNavigationPage.SetTransitionDuration(this, time);
 }