To make the window display without this gray border, you need to set the ‘ResizeMode’ property of the window to ’NoResize’.
[XAML]
Learn WPF!