Updated MainWindow.xaml.cs
Main File