StyleCop-ed MainWindow.xaml.cs