title: Silverlight page not catching input events
body: <p>I have been attempting to handle the KeyDown event of a UserControl (page) in my Silverlight application, but there seems to be some strange behaviour on the part of Silverlight user input functionality. The event is not getting raised under any circumstance. I have even tried attaching the event handler to each container control within the UserControl, but still with no luck. Indeed, the Silverlight user input "event routing" system is quite novel and seems rather strange to me, so perhaps it is just a misunderstanding on my part, though I have rather clueless about how to proceed.</p>
  
  <p>The following code is a template of the particular page with which I am testing.</p>
  
  <pre><code>&lt;UserControl x:Class="MyNamespace.CreditsPage"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
               KeyDown="UserControl_KeyDown"&gt;
      &lt;Grid x:Name="LayoutRoot"&gt;
          &lt;Border&gt;
              &lt;StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical"&gt;
                  &lt;TextBlock TextAlignment="Center"&gt;
                  A line of text.&lt;LineBreak /&gt;
                  &lt;LineBreak /&gt;
                  A line of text.&lt;LineBreak /&gt;
                  &lt;LineBreak /&gt;
                  A line of text.&lt;LineBreak /&gt;
                  &lt;LineBreak /&gt;
                  A line of text.&lt;LineBreak /&gt;
                  &lt;/TextBlock&gt;
              &lt;/StackPanel&gt;
          &lt;/Border&gt;
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>In WPF, the obvious solution for such an issue would be to handle the PreviewKeyDown event, but unfortunately this is not available in Silverlight 2. Any ideas would be welcome (and a short explanation of why Silverlight event routing is behaving as it is).</p>