I'm developing an application with a ribbon bar. One of the tools in the ribbon is a search text field (a TextEditorTool object). Next to the the search field there is a search button. Below the ribbon there is a xamDataGrid. So the idea is that you can filter the data in the grid by entering a string into the TextEditorTool and the press the search button. My customer thought that that instead of pressing the search key it would be more convenient just to press the enter key.
Nothing simpler than that! I just implemented the PreviewKeyUp Event of the TextEditorTool and tested e.Key against Key.Enter. Unfortunately it just doesn't work. I tried lots of potential workarounds but could not make it work.
What could be the problem?
Best Regards
Markus
P.S. I've attached a sample application that illustrates the problem.
Thanks to the Infragistics Support (Case CAS-56102-Q2G4P5) my problem is now solved. I had to set up a Command and to set the textbox input bindings to the enter key.
Attached you find the example program I've got from Matt (Infragistics Support).
Hope this helps other people to solve similar problems.