private void button_Click(object sender, RoutedEventArgs e) { frame.Content = null; //menghapus konten di frame frame.NavigationService.RemoveBackEntry(); //menghapus history frame //memanggil menubeli MenuBeli kmenubeli = new MenuBeli(); frame.Content = kmenubeli;//dimasukan ke dalam frame }
private void Window_Loaded(object sender, RoutedEventArgs e) { MenuBeli kmenubeli = new MenuBeli(); frame.Content = kmenubeli; }