示例#1
0
        private void PasswordClick(object sender, RoutedEventArgs e)
        {
            var passwordInput = new PasswordInputPrompt
            {
                Title   = "Basic Input",
                Message = "I'm a basic input prompt" + LongText,
            };

            passwordInput.Completed += PopUpPromptStringCompleted;

            passwordInput.Show();
        }
示例#2
0
        private void InputLongMsgClick(object sender, RoutedEventArgs e)
        {
            var passwordInput = new PasswordInputPrompt
            {
                Title               = "Basic Input",
                Message             = LongText,
                MessageTextWrapping = TextWrapping.Wrap,
            };

            passwordInput.Completed += PopUpPromptStringCompleted;

            passwordInput.Show();
        }
示例#3
0
        private void PasswordNoEnterClick(object sender, RoutedEventArgs e)
        {
            var passwordInput = new PasswordInputPrompt
            {
                Title              = "Enter won't submit",
                Message            = "Enter key won't submit now",
                IsSubmitOnEnterKey = false
            };

            passwordInput.Completed += PopUpPromptStringCompleted;

            passwordInput.Show();
        }
        private void InitializePrompt()
        {
            //var reuseObject = ReuseObject.IsChecked.GetValueOrDefault(false);

            if (_prompt != null)
            {
                _prompt.Completed -= PromptCompleted;
            }

            //if (!reuseObject || _prompt == null)
            {
                _prompt = new PasswordInputPrompt();
            }

            _prompt.Completed += PromptCompleted;
        }
示例#5
0
        private void PasswordAdvancedClick(object sender, RoutedEventArgs e)
        {
            var passwordInput = new PasswordInputPrompt
            {
                Title           = "TelephoneNum",
                Message         = "I'm a message about Telephone numbers!",
                Background      = _naturalBlueSolidColorBrush,
                Foreground      = _aliceBlueSolidColorBrush,
                Overlay         = _cornFlowerBlueSolidColorBrush,
                IsCancelVisible = true,
                InputScope      = new InputScope {
                    Names = { new InputScopeName {
                                  NameValue = InputScopeNameValue.TelephoneNumber
                              } }
                },
                Value = "doom"
            };

            passwordInput.Completed += PopUpPromptStringCompleted;

            passwordInput.Show();
        }