How can i raise TextBox KeyDown event?
See original GitHub issueI try:
<TextBox KeyDown="{s:Action MyKeyDown}" />
private void MyKeyDown(object sender, KeyEventArgs e)
{
// stuff...
}
doesn’t work.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
TextBox.KeyDown event (Access)
KeyDown event occurs when the user presses a key while a form or control has the focus. This event also occurs if you...
Read more >How do I capture the Text of a TextBox during a KeyDown ...
After the event exits, the pressed key is added to the .Text property, so the next time the KeyDown event is raised, you...
Read more >Sending key down events to TextBox - Forums
I have tried creating a new KeyEventArg and raising that event on the TextBox instance. ((Button)FindName("TestButton")). Click += (sender, ...
Read more >Some Keys do not raise the TextBox.KeyDown event #7844
Currently the KeyDown event for the TextBox is not raised when the Key.Back, Key.Delete, Key.Right, Key.Left keys are pressed.
Read more >TextBox - How to get new value in onKeyDown
I know that the parameter of the onKeyDown() event handler holds the (old and) new value of e.g. a textbox.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It works for me. Here’s a project which demonstrates it working:
TestProject.zip
Please provide a minimal reproducible example which demonstrates your issue.
thanks.That is what I need