Priya M

Priya M

  • NA
  • 42
  • 11.6k

WPF->Parent and child Form

Feb 10 2016 3:12 AM
Hello,
 
On One.xaml ,I create a Menu,And I want to open other form on clicking on Submemu item.Both form are work as parent child form.
How we set here child and parent form.
I dont want to use WPF.MDI.dll because their is assembly reference error.
I use following code but it not work properly
 
   private void Member_Click(object sender, RoutedEventArgs e)
{
MemberDetails MemberRegi = new MemberDetails();//Member details is child form
MemberRegi.ShowInTaskbar = false;
MemberRegi.Owner = Application.Current.MainWindow;
MemberRegi.ShowDialog();
}
when i click on Submenu of parent form then Member_click event is occur.

Answers (3)