Small improvements in WPF client to ensure the empty app starts correctly in maximized mode