コード例 #1
0
        public async Task GoToEditUserView()
        {
            EditUserModel editUserModel;

            if (SelectedUser == null)
            {
                editUserModel = new EditUserModel
                {
                    UserId = UsersList.First().Id
                };
            }
            else
            {
                editUserModel = new EditUserModel
                {
                    UserId = SelectedUser.Id
                };
            }

            await NavigationService.Navigate <EditUserViewModel, EditUserModel>(new EditUserModel
            {
                UserId = UsersList.First().Id
            });
        }