コード例 #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            var user = (e.Parameter as User) ?? LocalUtils.CurrentUser();

            if (user == null)
            {
                return;
            }
            SetUser(user);
            LoginButton.IsEnabled = !String.IsNullOrWhiteSpace(NameBox.Text) && !String.IsNullOrEmpty(PasswordBox.Password);
        }