Пример #1
0
        // Note - The Xamarin.Forms Previewer requires a default, parameterless constructor to render a page.
        public EventDetailPage()
        {
            InitializeComponent();

            Event _event = new Event()
            {
                Title     = "Title",
                Text      = "Description",
                StartDate = DateTime.Today
            };

            BindingContext = this.ViewModel = new EventDetailViewModel(_event);
        }
Пример #2
0
        public EventDetailPage(EventDetailViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = this.ViewModel = viewModel;
        }