Beispiel #1
0
        public PurchasePage(Package package, bool hasAccount)
        {
            _baseViewModel         = new BaseViewModel();
            _purchasePageViewModel = new PurchasePageViewModel();
            account         = _baseViewModel.GetAccountInformation();
            BackgroundColor = Color.FromHex("#F1ECCE");

            this.package    = package;
            this.isLoggedIn = hasAccount;
#if __ANDROID__
            Padding = new Thickness(5, 5, 5, 5);
#endif
#if __IOS__
            Padding = new Thickness(10, 30, 10, 10);
#endif
            SetContent();
        }
Beispiel #2
0
 public PurchasePage()
 {
     InitializeComponent();
     NavigationPage.SetBackButtonTitle(this, "");
     BindingContext = viewModel = new PurchasePageViewModel(this.Navigation);
 }