hi.. group,
i am quite new in WPF stuff. I make up a project using Blend and put a keyDown event handler.
when I run the program, the OnKeyDown function is not called no matter what key you press. Is anyone has an idea how to catch a keydown event on a Grid.
Thanks.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="UntitledProject1.Window1"
x:Name="Window"
Title="Window1"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" KeyDown="OnkeyDown"/>
</Window>