August 23, 2012 Leave a comment
The full event sequence for keyboard related events is shown below, as they propagate down (tunneling) or up (bubbling) the logical tree.
If we have a Window that contains a StackPanel, which in turn contains a TextBox, the sequence of events would be:
- TextBox_TextInput – suppressed/handled
- StackPanel_TextInput - suppressed/handled
- Window_TextInput – suppressed/handled
Note that the TextInput event is listed, since TextInput events would normally fire for the originating control and then propagate up the logical tree. But in the case of TextBox, the TextInput event is marked as handled and therefore does not fire.