How do I route the KeyUpEvent
event for a UIElement
to a TextBox
in WPF?
For example with the following objects:
<Rectangle x:Name="rectangleWPF"></Rectangle>
<TextBox x:Name="textBoxWPF"></TextBox>
If an 'A' is pressed on rectangleWPF then an 'A' must be inserted into textBoxWPF. Then if a backspace is pressed on rectangleWPF, textBoxWPF should display nothing.