Update MainPage.xaml.cs

Bug is my mistake. I think it is finished.