Developing full screen WPF applications
-
Thursday, December 22, 2005 8:36 AMModerator
How would I create borderless full screen applications with WPF? Is that possible with Navigation Applications as well?
Thanks,
Neno
All Replies
-
Thursday, December 22, 2005 1:56 PM
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:57 PMi should also note that i have not tried this with navigation applications, just plain old windowed apps.
-
Thursday, December 22, 2005 2:41 PM
Try this in your Window1.xaml in your Window statement:WindowStyle = "None" to get a window without borderWindowState = "Maximized" to make the window full screen -
Thursday, January 26, 2006 5:26 AM
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. -
Monday, April 17, 2006 6:59 PMIs 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.
-
Tuesday, April 18, 2006 9:17 AM
Sure in the CS of the file that will contain your NavigationWindow use
this.ShowsNavigationUI = false;
HTH
Andy
-
Monday, September 03, 2007 6:00 AM

