This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace Flatten | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<xf:BottomBarPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="Movies.Views.MoviesHomeTabbedPage" | |
FixedMode="false" | |
BarTheme="DarkWithAlpha" | |
xmlns:xf="clr-namespace:BottomBar.XamarinForms;assembly=BottomBar.XamarinForms" | |
xmlns:screens="clr-namespace:Movies.Views;assembly=Movies" | |
BarTextColor="White" | |
BarBackgroundColor="Black"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnInitialized() | |
{ | |
InitializeComponent(); | |
var tabs = CreateTabs(); | |
NavigationService.NavigateAsync(tabs); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void OnMovieSelected(Movie movie) | |
{ | |
if (movie == null) | |
return; | |
var navigationParameters = new NavigationParameters(); | |
navigationParameters.Add(NavigationParametersKey.SelectedMovieId, movie.Id); | |
await _navigationService.NavigateAsync($"{nameof(MovieDetails)}", navigationParameters); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void OnMovieSelected(Movie movie) | |
{ | |
if (movie == null) | |
return; | |
var navigationParameters = new NavigationParameters(); | |
navigationParameters.Add(NavigationParametersKey.SelectedMovieId, movie.Id); | |
await _navigationService.NavigateAsync($"{nameof(MovieDetails)}", navigationParameters); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var showingNowTab = $"{KnownNavigationParameters.CreateTab}={Screens.ShowingNowNavigationPage}|{Screens.ShowingNow}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tabs = $"{Screens.MoviesHomeTabbedPage}?{showingNowTab}&{categoriesTab}&{aboutMeTab}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Screens | |
{ | |
public readonly static string MoviesHomeTabbedPage = nameof(MoviesHomeTabbedPage); | |
public readonly static string ShowingNowNavigationPage = nameof(ShowingNowNavigationPage); | |
public readonly static string CategoriesNavigationPage = nameof(CategoriesNavigationPage); | |
public readonly static string AboutMeNavigationPage = nameof(AboutMeNavigationPage); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class App : PrismApplication | |
{ | |
public App(IPlatformInitializer initializer = null) : base(initializer) { } | |
protected override void OnInitialized() | |
{ | |
InitializeComponent(); | |
var tabs = CreateTabs(); |
NewerOlder