Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
770
XamGrid.KeyDown doesn't pass Key.Enter
posted

Hi

I wanted to catch 'enter' in a text column to add a new line to the text (since TextColumn doesn't support 'AcceptsReturn') so I added a KeyDown handler to the grid and found that the handler isn't called for Key.Enter.

It is, however, called for Key.Enter when catching KeyDown on a TextBlock in a TemplateColumn. which is what I'm doing now, but it seems an odd restriction.  

 

James