Why am I not receiving keyboard input events in full screen mode?

I'm having issues with the fullscreen mode of Silverlight.

If I switch my application to full screen mode, all input from the keyboard will not be processed. No text box input, no key / key press event, and possibly much more. Here is an example application demonstrating this:

Xaml:

<Canvas> <TextBlock Text="Try some input:" Canvas.Top="10" Width="100"></TextBlock> <TextBox x:Name="tboxInput" Width="100" Canvas.Top="30"></TextBox> <Button x:Name="btnFullScreen" Content="Go Full Screen" Canvas.Top="60"></Button> </Canvas> 

Code behind:

 public Page() { InitializeComponent(); btnFullScreen.Click += new RoutedEventHandler(btnFullScreen_Click); } void btnFullScreen_Click(object sender, RoutedEventArgs e) { Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen; if (!Application.Current.Host.Content.IsFullScreen) btnFullScreen.Content = "Go Full Screen"; else btnFullScreen.Content = "Go Normal Screen"; } 

It’s easier to see that in full screen mode you cannot write text in a text field. Am I something wrong here? Is there any other way to switch the full screen to prevent this from happening?

+4
source share
1 answer

This link should help you: http://silverlight.net/forums/p/11519/36798.aspx

EDIT

And this MSDN article article gives more details:

When the Silverlight plug-in is in full-screen mode, it disables most keyboard events. This restriction on keyboard input during full-screen mode is a security feature and is designed to minimize the possibility of inadvertent user input. In full screen mode, a valid input is only possible through the following keys.

UP ARROW, DOWN ARROW, LEFT ARROW, RIGHT ARROW, SPACEBAR, TAB, PAGE UP, PAGE DOWN, HOME, END, ENTER

+6
source

All Articles