Set window size in XAML
<Window x:Class="ExplicitAppSample.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="ExplicitAppSample" Height="300" Width="300" > </Window>