Silverlight Canvas does not support KeyDown?

I have this:


In the newly launched Ag 3 application in VS2008. I just changed the default to and added a KeyDown handler that pops up the MessageBox. < /p>

But no matter how I try, the KeyDown event will never happen.

It’s just that doesn’t support KeyDown or what am I doing wrong?

You need to have at least some focusable things in Canvas, you will find that events will Come out.

You may also want to set IsHitTestVisible = “True” on Canvas.

I have this:

< /p>


Newly launched Ag in VS2008 3 application. I just changed the default to and added a KeyDown handler that pops up the MessageBox.

But no matter how I try, the KeyDown event never happens.

It’s just that does not support KeyDown or what am I doing wrong?

You need to have at least some focusable things in Canvas, you will find events will pop up.

You may also want to set IsHitTestVisible = “True” on Canvas.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4014 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.