Esempio n. 1
0
        public JournalEntriesPage(JournalEntriesViewModel viewModel)
        {
            InitializeComponent();

            NavigationPage.SetBackButtonTitle(this, "");
            BindingContext           = this.viewModel = viewModel;
            this.viewModel.searchBar = searchBar;
        }
Esempio n. 2
0
        public JournalEntriesPage()
        {
            InitializeComponent();

            var journal = new Journal
            {
                Title       = "Journal 1",
                Description = "This is a journal description."
            };

            NavigationPage.SetBackButtonTitle(this, "");
            viewModel      = new JournalEntriesViewModel(journal);
            BindingContext = viewModel;
        }