public EntryPage() { if (!ViewModelLocator.ModelExists <EntryPageViewModel>()) { ViewModelLocator.Add(new EntryPageViewModel()); } InitializeComponent(); BindingContext = ViewModelLocator.Resolve <EntryPageViewModel>(); }