11
Sep

Switching to Full Screen

Post a comment » Popularity: 1%

Switch to full screen can be achieved by just one line of coding. However, please note that the method can be called under certain user interaction, such as Mouse Click.

Switching to Full Screen

View Demo: New Window
Switch to full screen in C#:
private void FullScreen_Click(object sender, RoutedEventArgs e)
{
    // This can be called upon a mouse event
    Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen;
}
  • DZone
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit

Related Posts

Leave a Reply