Open MDI child window from another MDI child window

Mar 11, 2011 at 5:35 AM

Hi,

I am just wondering how you would go about opening another child window from within another child window and attaching it to the window collection?

I hope this question hasn't been answered I have gone through the posts, but haven't seen it.

Any help would be greatly appreciated.

Great work on the project by the way, the performance is good compared to other solutions!

Mar 11, 2011 at 6:04 AM

This functionality I have resolved and will post below, if anyone has a better solution please let me know please. I only had a quick crack at this

In my MainWindow.cs
---------------------------------------------------------------------
public static WpfApplication1.MainWindow mw;

        public MainWindow()
        {
            InitializeComponent();
            mw = this;           
        }

From your class
----------------------------------------------------------------------

  WpfApplication1.MainWindow.mw.Container.Children.Add(new MdiChild
            {
                Title = "Demo internal load",
                Content = new ExampleControl(),
                Width = 820,
                Height = 600,
                Resizable=false,
                Position = new Point(200, 30),
               
            });

 

Jan 23, 2013 at 2:18 AM

yeah ,thanks