The type ‘Window’ does not support direct content May 10, 2023 by Tarik Make sure you reference System.Xaml. Clean and rebuild the project. Works on VS 2015 Update 1.