Full screen wpf

I am developing a WPF application that will be displayed in full screen. In addition, the application should work on many tablets of several sizes. I would like my application to work in full screen mode regardless of its size.

What is the best practice for this task?

+67
c # wpf xaml fullscreen
Apr 10 '13 at 7:54
source share
2 answers

Just set WindowState to Maximized and WindowStyle to None .

+136
Apr 10 '13 at 7:58
source share

Set WindowStyle to None and WindowState to maximum. This can be done as follows:

 WindowState = WindowState.Maximized; WindowStyle = WindowStyle.None; 

Or in xaml:

 <Window x:Class="FullScreenApplication.Window" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Full Screen WPF" WindowState="Maximized" WindowStyle="None"> 

And just press ALT-TAB to exit full-screen wpf. It allows you to switch between other applications.

+26
Jan 17 '16 at 17:29
source share



All Articles