How can I programmatically generate keyDown events in Silverlight? -


I have 2 textboxes that are not visible first. When the first key throws the key down event on the text box, I want to shoot the same text on the second text box, so it will respond in the same manner as the user was typing into another text box.

How can I do this?


EDIT: I know that you can do this in Windows. Forums and I was hoping that it can be done here too.

My goal is to have 2 text boxes with different text, but when the user types something in 1 text box then the same text should appear in the second text box.

Example: Text in the first text box:

  & lt; Home & gt; & Lt; Number & gt; 75 & lt; / Number & gt; & Lt; Customers & gt; John & lt; / Customer & gt; & Lt; / Home & gt;  

Text in the second text box

  & lt; Home & gt; & Lt; Number id = "123" & gt; 75 & lt; / Number & gt; & Lt; Client ID = "345" & gt; John & lt; / Client & gt; & Lt; / Home & gt;  

The user now likes some new text in the first text box:

   

And now this new text should appear in the 2 text box:

  & lt; Home & gt; & Lt; Number id = "123" & gt; 150 & lt; / Number & gt; & Lt; Client ID = "345" & gt; John & lt; / Client & gt; & Lt; / Home & gt;  

And this is just an example to change the values. Users can also add new elements, remove them, change orders.

I have tried mapping with KAVINTORGS, but I like the non-standard key like loose control for: "šđžćč "

You can not copy the keyboard in the way you want.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -