private void buttonEdit_Click(object sender, RoutedEventArgs e) { var editWin = new EditPage(mCurrentPage.PageName); editWin.ShowDialog(); }