private void btnLogOff_Click(object sender, RoutedEventArgs e) { MasterKey.Destroy(); Frame.Navigate(typeof(LoginPage)); }