This is a migrated thread and some comments may be shown as answers.

async InputPrompt with keyDownHandler

2 Answers 43 Views
InputPrompt
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christof
Top achievements
Rank 2
Christof asked on 24 Aug 2013, 03:53 PM
Hello !

Can you give me a example how can i use the async Inputpromt with the keyDownHandler?
Found nothing in the documentation and have no idea how to use this...

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 27 Aug 2013, 10:06 AM
Hi Christof,

Thank you for writing.

Here's an example with the keyDownHandler, used with the async implementation of the Show method:
InputPromptClosedEventArgs args = await RadInputPrompt.ShowAsync("Title", inputMode: InputMode.Password,
    keyDownHandler: (keyArgs) =>
        {
            if (keyArgs.Key == Key.Enter)
            {
                RadInputPrompt.Close();
            }
        });
txt.Text = args.Text;
This example shows a password box and when the enter key is pressed the text is written in the TextBlock named txt

Let me know if you need further assistance.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Christof
Top achievements
Rank 2
answered on 01 Sep 2013, 07:48 AM
thanks for help!
Tags
InputPrompt
Asked by
Christof
Top achievements
Rank 2
Answers by
Todor
Telerik team
Christof
Top achievements
Rank 2
Share this question
or