Update MainWindow.xaml.cs

Made it work with new renaming of attributes in Contents.xml