Catel MVVM: How to create a WPF fullscreen Application

Tags: catel, mvvm, wpf

Today we came across a problem while creating a new Application using the Catel-Framework. The Application is a Device-Application that should run standalone without a Windows user interface.
A Window in Catel derives from a base class called  DataWindow<TViewModel>.
Just setting the Property WinowState=”Maximized” in the XAML does not do the trick.

If you want to have a fullscreen application without a Border you need to set the flags as you can see below:

ResizeMode="NoResize"
SizeToContent="Manual"
WindowStartupLocation="Manual"
WindowState="Maximized" 
CanClose="False" 
WindowStyle="None" 


The important setting is

SizeToContent="Manual"

Hopefully that helps some other programmers out there.

Greets
--[ Helmut ]--

Add a Comment