public Content_DetailedStoreItemPage(StoreItem item) { Item = item; InitializeComponent(); BindingContext = this; SharedTransitionNavigationPage.SetTransitionDuration(this, AnimationTime); }
public DetailNotice(Item item2) { InitializeComponent(); item = item2; Image.Source = item.Thumbnail; SharedTransitionNavigationPage.SetTransitionDuration(this, 500); }
public AuthorView() { InitializeComponent(); BindingContext = new AuthorViewModel(); SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.Fade); SharedTransitionNavigationPage.SetTransitionDuration(this, 500); }
private async void BooksListView_ItemTapped(object sender, ItemTappedEventArgs e) { // set the selected book ((BooksViewModel)BindingContext).SelectedBook = e.Item as Book; SharedTransitionNavigationPage.SetTransitionDuration(this, 300); SharedTransitionNavigationPage.SetTransitionSelectedGroup(this, ((BooksViewModel)BindingContext).SelectedBook.Title); await Navigation.PushAsync(new SwapDetails()); }
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)); }
public MainPage() { InitializeComponent(); if (Device.RuntimePlatform == "Android") { NavigationPage.SetHasNavigationBar(this, false); } SharedTransitionNavigationPage.SetTransitionDuration(this, 500); SharedTransitionNavigationPage.SetBackgroundAnimation(this, BackgroundAnimation.None); }
public ArtDetailView(object parameter) { InitializeComponent(); BindingContext = new ArtDetailViewModel(parameter); if (Device.RuntimePlatform == "Android") { NavigationPage.SetHasNavigationBar(this, false); } SharedTransitionNavigationPage.SetTransitionDuration(this, 500); }
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; }
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); }
private void SetPageAnimation(BackgroundAnimation animation, long time) { SharedTransitionNavigationPage.SetBackgroundAnimation(this, animation); SharedTransitionNavigationPage.SetTransitionDuration(this, time); }