public WizardCustomerPage(CustomerModel customer) { try { InitializeComponent(); _viewModel = new CustomerViewModel(); _viewModel.InitPages(customer); BindingContext = _viewModel; _primaryColor = (Color)Application.Current.Resources["Primary"]; _unselectedColor = (Color)Application.Current.Resources["UnselectedColor"]; } catch (System.Exception e) { Debug.WriteLine(e); throw; } }
public WizardCustomerPage() { try { InitializeComponent(); _viewModel = ServiceLocator.Current.GetInstance <CustomerViewModel>(); _viewModel.InitPages(); BindingContext = _viewModel; _primaryColor = (Color)Application.Current.Resources["Primary"]; _unselectedColor = (Color)Application.Current.Resources["UnselectedColor"]; } catch (System.Exception e) { Debug.WriteLine(e); throw; } }