Silverlight Canvas doesn't support KeyDown?
Posted
by chakrit
on Stack Overflow
See other posts from Stack Overflow
or by chakrit
Published on 2010-04-07T21:41:31Z
Indexed on
2010/04/07
21:43 UTC
Read the original article
Hit count: 517
I have this:
<Canvas x:Name="LayoutRoot" KeyDown="LayoutRoot_KeyDown">
</Canvas>
In a newly-minted Ag 3 application in VS2008. I simply changed the default <Grid />
to <Canvas />
and added a KeyDown
handler that pops a MessageBox.
But no matter how I tried, the KeyDown
event just would never, ever fires.
Is it simply that <Canvas />
doesn't support KeyDown
or am I doing something wrong?
© Stack Overflow or respective owner