public EditEntryPage() { InitializeComponent(); var entry = new Entry { Title = "This is an entry" }; viewModel = new EntryDetailViewModel(entry); BindingContext = viewModel; }
public EntryDetailPage(EntryDetailViewModel viewModel) { InitializeComponent(); NavigationPage.SetBackButtonTitle(this, ""); BindingContext = this.viewModel = viewModel; if (!viewModel.editMode) { ToolbarItems.Clear(); } }
public EntryDetailPage() { InitializeComponent(); NavigationPage.SetBackButtonTitle(this, ""); var entry = new Entry { Title = "This is an entry" }; viewModel = new EntryDetailViewModel(entry); BindingContext = viewModel; }
public EditEntryPage(EntryDetailViewModel viewModel) { InitializeComponent(); BindingContext = this.viewModel = viewModel; }