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?
source share