Beispiel #1
0
        public EditEntryPage()
        {
            InitializeComponent();

            var entry = new Entry
            {
                Title = "This is an entry"
            };

            viewModel      = new EntryDetailViewModel(entry);
            BindingContext = viewModel;
        }
Beispiel #2
0
        public EntryDetailPage(EntryDetailViewModel viewModel)
        {
            InitializeComponent();

            NavigationPage.SetBackButtonTitle(this, "");

            BindingContext = this.viewModel = viewModel;

            if (!viewModel.editMode)
            {
                ToolbarItems.Clear();
            }
        }
Beispiel #3
0
        public EntryDetailPage()
        {
            InitializeComponent();

            NavigationPage.SetBackButtonTitle(this, "");

            var entry = new Entry
            {
                Title = "This is an entry"
            };

            viewModel      = new EntryDetailViewModel(entry);
            BindingContext = viewModel;
        }
Beispiel #4
0
        public EditEntryPage(EntryDetailViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = this.viewModel = viewModel;
        }