How do we grab the event that is generated when the inputscope of a TextBox is set to search and the Arrow is pressed?
Asked
Active
Viewed 330 times
0
-
Please, one question per question. Also, no need to fill the title with tags! – Dec 06 '11 at 15:18
-
the form submission did not allow it to be posted. it was a very short question. – Jay Kannan Dec 06 '11 at 16:11
1 Answers
0
1.There is an event OnKeyDown where you can check what key is pressed
textBox.OnKeyDown += (s, e) =>
{
if (e.Key == Key.Enter)
{
// perform search
e.Handler = true;
}
}
2.ScrollViewer automatically scrolls to focused textbox, I guess...

Ku6opr
- 8,126
- 2
- 24
- 31
-
Thank,s but it doesn't scroll automatically when asked to focus. anything I need to look out for. it's a credit card details page. – Jay Kannan Dec 06 '11 at 15:15
-
It worked, thanks. Still need an answer for the scrollviewer though. is there a way to manually scroll it? – Jay Kannan Dec 06 '11 at 15:26