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

            var user = new User
            {
                Name = "Placeholder Name",
                Role = (int)RoleEnum.Driver
            };

            viewModel      = new UserDetailViewModel(user);
            BindingContext = viewModel;
        }
Beispiel #2
0
 public UserDetailPage(UserDetailViewModel viewModel)
 {
     InitializeComponent();
     BindingContext = this.viewModel = viewModel;
 }