public CustomTabbedPage() { BarBackgroundColor = Colors.TabBarBackground; _summaryPage = new CustomNavigationPage(new SummaryPage()); _summaryPage.Title = "Summary"; _summaryPage.TabIcon = FontAwesome.FALineChart; _summaryPage.SelectedTabIcon = FontAwesome.FALineChart; this.Children.Add(_summaryPage); _debtsPage = new CustomNavigationPage(new DebtListPage()); _debtsPage.Title = "Debts"; _debtsPage.TabIcon = FontAwesome.FABank; _debtsPage.SelectedTabIcon = FontAwesome.FABank; this.Children.Add(_debtsPage); _paymentsPage = new CustomNavigationPage(new PaymentListPage()); _paymentsPage.Title = "Strategy"; _paymentsPage.TabIcon = FontAwesome.FAMoney; _paymentsPage.SelectedTabIcon = FontAwesome.FAMoney; this.Children.Add(_paymentsPage); _amortizationPage = new CustomNavigationPage(new AmortizationListPage()); _amortizationPage.Title = "Amortization"; _amortizationPage.TabIcon = FontAwesome.FACalendar; _amortizationPage.SelectedTabIcon = FontAwesome.FACalendar; this.Children.Add(_amortizationPage); }
void SetupTabbedPage() { _tabbedNavigationPage = new CustomTabbedPage (); _summaryPage = new CustomNavigationPage(new SummaryPage()); _summaryPage.Title = "Summary"; _summaryPage.TabIcon = FontAwesome.FALineChart; _summaryPage.SelectedTabIcon = FontAwesome.FALineChart; _tabbedNavigationPage.Children.Add(_summaryPage); _debtsPage = new CustomNavigationPage(new DebtListPage()); _debtsPage.Title = "Debts"; _debtsPage.TabIcon = FontAwesome.FABank; _debtsPage.SelectedTabIcon = FontAwesome.FABank; _tabbedNavigationPage.Children.Add(_debtsPage); _paymentsPage = new CustomNavigationPage(new PaymentListPage()); _paymentsPage.Title = "Income"; _paymentsPage.TabIcon = FontAwesome.FAMoney; _paymentsPage.SelectedTabIcon = FontAwesome.FAMoney; _tabbedNavigationPage.Children.Add(_paymentsPage); _amortizationPage = new CustomNavigationPage(new AmortizationListPage()); _amortizationPage.Title = "Amortization"; _amortizationPage.TabIcon = FontAwesome.FACalendar; _amortizationPage.SelectedTabIcon = FontAwesome.FACalendar; _tabbedNavigationPage.Children.Add(_amortizationPage); this.Detail = _tabbedNavigationPage; }