none
Developing full screen WPF applications

    Question

  • How would I create borderless full screen applications with WPF? Is that possible with Navigation Applications as well?

    Thanks,

    Neno

    Thursday, December 22, 2005 8:36 AM
    Moderator

Answers

  • Try this in your Window1.xaml in your Window statement:
     
    WindowStyle = "None" to get a window without border
    WindowState = "Maximized" to make the window full screen
     
    Thursday, December 22, 2005 2:41 PM
  • Sure in the CS of the file that will contain your NavigationWindow use

    this.ShowsNavigationUI = false;

    HTH

    Andy

    Tuesday, April 18, 2006 9:17 AM

All replies

  • the way i had to do it is to use win32 interop to create a layered window which takes up the whole screen, then make that window topmost.

    the downside to this is that because there is currently no per-pixel alpha, unless you are drawing the entire screen for your app, you'll get jagged edges.

     

    Thursday, December 22, 2005 1:56 PM
  • i should also note that i have not tried this with navigation applications, just plain old windowed apps.
    Thursday, December 22, 2005 1:57 PM
  • Try this in your Window1.xaml in your Window statement:
     
    WindowStyle = "None" to get a window without border
    WindowState = "Maximized" to make the window full screen
     
    Thursday, December 22, 2005 2:41 PM
  • I found this to work rather well:

    <Application.Resources>

      <Style x:Key="{x:Type NavigationWindow}" TargetType="{x:Type NavigationWindow}">

        <Setter Property="WindowStyle" Value="None" />

        <Setter Property="ShowsNavigationUI" Value="False" />

        <Setter Property="WindowState" Value="Maximized" />

        <Setter Property="Topmost" Value="True" />

        <Setter Property="Cursor" Value="None" />

      </Style>

    </Application.Resources>

     

    You can of course include or exclude the cursor and the navigation as appropriate. I think those settings above should work great for a kiosk with a touch screen.

    Thursday, January 26, 2006 5:26 AM
  • Is there a way to set the NavigationWindow.ShowsNavigationUI programitically from C# code instead of from Xaml? I have tried but cant figure it out. This is for an Expression project. Basically I just want to get rid of the chrome.
    Monday, April 17, 2006 6:59 PM
  • Sure in the CS of the file that will contain your NavigationWindow use

    this.ShowsNavigationUI = false;

    HTH

    Andy

    Tuesday, April 18, 2006 9:17 AM
  • Hey Neno..
    you can refer 3d-full-screen-windows also.

    - Ankit
    Monday, September 03, 2007 6:00 AM