<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Re: Re: KeyDown event for Silverlight User Control</title><link>http://forums.silverlight.net/forums/thread/114083.aspx</link><pubDate>Tue, 21 Oct 2008 07:47:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:114083</guid><dc:creator>forci</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/114083.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=114083</wfw:commentRss><description>&lt;p&gt;What if you have for root element Grid.&lt;/p&gt;&lt;p&gt;This behaviour is very strange for me. Only root canvas can receive keys events?&lt;/p&gt;&lt;p&gt;So if i understand correctly everything, in your UserControl, you must have for your root element Canvas and only this control can receive keys events? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: KeyDown event for Silverlight User Control</title><link>http://forums.silverlight.net/forums/thread/30397.aspx</link><pubDate>Sun, 10 Feb 2008 17:55:35 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:30397</guid><dc:creator>hammadmirza</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/30397.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=30397</wfw:commentRss><description>&lt;p&gt;FredHirschfeld is right,&lt;/p&gt;
&lt;p&gt;this is the only way of doing it&lt;/p&gt;
&lt;p&gt;you can call a public method of your custom control e.g public void OnKeyDown(...)&lt;/p&gt;
&lt;p&gt;and pass in the sender and eventargs , if the custom control is focused ( Mouse Over that control or MouseLeftButtonDown occured on it)&lt;/p&gt;
&lt;p&gt;i also did it by this way&lt;/p&gt;</description></item><item><title>Re: Re: Re: KeyDown event for Silverlight User Control</title><link>http://forums.silverlight.net/forums/thread/30313.aspx</link><pubDate>Sat, 09 Feb 2008 18:24:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:30313</guid><dc:creator>RootCanvas</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/30313.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=30313</wfw:commentRss><description>&lt;p&gt;Thank you both of you for replies. still i dont hv luck. could you pls give some sample code for this.&lt;/p&gt;</description></item><item><title>Re: Re: KeyDown event for Silverlight User Control</title><link>http://forums.silverlight.net/forums/thread/30144.aspx</link><pubDate>Thu, 07 Feb 2008 23:42:27 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:30144</guid><dc:creator>FredHirschfeld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/30144.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=30144</wfw:commentRss><description>&lt;p&gt;I have created a FocusManager to manage the current focused control and then from the base Page class I push the events to the focus manager to send to the focused control. I also have a base control class that supports focus to manage that interaction as well.&lt;/p&gt;&amp;nbsp;So your page would connect the events like:&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;KeyUp += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;KeyboardEventHandler&lt;/font&gt;&lt;font size="2"&gt;(HandleKeyUp);&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;KeyDown += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;KeyboardEventHandler&lt;/font&gt;&lt;font size="2"&gt;(HandleKeyDown);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Then the processing methods would call the appropriate FocusManager.Process***(e) to start processing the events. These handlers would simply detect if there is a focused control and if so send it the event. The focusing would simply be set when the user clicks on the control or you could get even more in depth and support tab ordering as well.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Re: KeyDown event for Silverlight User Control</title><link>http://forums.silverlight.net/forums/thread/30094.aspx</link><pubDate>Thu, 07 Feb 2008 17:34:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:30094</guid><dc:creator>RootCanvas</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/30094.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=30094</wfw:commentRss><description>&lt;p&gt;Do you have any idea about how to do this, ie as you say need to implement some additional logic, &lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: KeyDown event for Silverlight User Control</title><link>http://forums.silverlight.net/forums/thread/30012.aspx</link><pubDate>Thu, 07 Feb 2008 03:02:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:30012</guid><dc:creator>FredHirschfeld</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/30012.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=30012</wfw:commentRss><description>&lt;p&gt;You will need to implement some additional logic to support bubbling the events to your controls... from the root canvas.&lt;/p&gt;</description></item><item><title>Re: KeyDown event for Silverlight User Control</title><link>http://forums.silverlight.net/forums/thread/29959.aspx</link><pubDate>Wed, 06 Feb 2008 20:22:37 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:29959</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/29959.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=29959</wfw:commentRss><description>&lt;p&gt;Hello, &lt;/p&gt;&lt;p&gt;AFAIK, Key input events (KeyDown and Keyup)&amp;nbsp; works only for root canvas (e.g. Canvas from Page.xaml).&amp;nbsp; I think it won&amp;#39;t work for user control. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>KeyDown event for Silverlight User Control</title><link>http://forums.silverlight.net/forums/thread/29944.aspx</link><pubDate>Wed, 06 Feb 2008 17:59:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:29944</guid><dc:creator>RootCanvas</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/29944.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=29944</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried several ways to track the KeyDown event on a SL User Control but not success. Does anyone can&amp;nbsp;know how can we capture the key events&amp;nbsp;of a user control?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>