private void PasswordClick(object sender, RoutedEventArgs e)
        {
            InitializePrompt();

            _prompt.Title   = "Basic Input";
            _prompt.Message = "I'm a basic input prompt" + LongText;

            _prompt.Show();
        }
示例#2
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();
        }
示例#3
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();
        }
示例#4
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();
        }
示例#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();
        }