public AddConferencePageViewModel(Action <DevDayModel> addAction, INavigation navigation)
        {
            Model = new DevDayModel();

            SaveConferenceCommand = new Command(async() =>
            {
                addAction.Invoke(Model);
                await navigation.PopModalAsync(true);
            });

            CancelSaveConference = new Command(async() =>
            {
                await navigation.PopModalAsync();
            });
        }
Exemplo n.º 2
0
        public MainDetailPage(DevDayModel model)
        {
            InitializeComponent();

            BindingContext = new MainDetailPageViewModel(model);
        }
 public MainDetailPageViewModel(DevDayModel model)
 {
     Model = model;
 }