protected override void OnAppearing()
        {
            base.OnAppearing();
            HomeTeam = DatabaseService.Provider.GetHomeTeam();

            // if their is no home team set, provide the ui to do so
            if (HomeTeam == null)
            {
                // Passing in the page because depending on the user's actions we might set the content to a different template
                Content = new SetHomeTeamTemplate(this);
            }
            // there is a home team set so show their hometeams stats
            else
            {
                Content        = new TeamStatsTemplate(HomeTeam);
                BindingContext = new HomeTeamViewModel(HomeTeam);
            }
        }
 public ViewTeamDetailsPage(Team _team)
 {
     InitializeComponent();
     Content = new TeamStatsTemplate(_team);
 }