Hi all, I am very new to Infragistics, Just started two days back, and also new to WPF, same age!
Previously I worked in .NET 2.0 and use WeifenLuo Docking control, many of you have used this, since it is a very good and common opensource control, Now I want to do the same in WPF using this xamDockManager control. Can some one share some piece of code to load a window in xamDockManager.
An earliest reply is needed.
Regards
Muhammad Sharjeel Ahsan
I assume you are referring to the tabbed area in the middle. If you want to create a tabbed mdi style interface then you can certainly use xamDockManager. You would set the Content of the xamDockManager to a DocumentContentHost. There are examples in the samplesBrowser, example snippets in the help as well as lots of mentions about the DocumentContentHost here in the forums. Each of those tabs would essentially be a ContentPane instance. You would set the Content of that ContentPane to be whatever elements you want.
Smith, as you can see in the below screen, this application, I developed using winforms. i use WeifenLuo dock control, in this controls, you just locate the for and it will load in the dock control, I do not have such controls in WPF, But my customer is required the same type of interface. Please advice how can I achieve my goals.
You cannot contain a WPF Window in any element - it will explicitly throw an exception when you try this. I'm not sure why you want to use a Window but if its so that you can show the same content in a separate window in other situations then I would recommend that you create a UserControl. You could put an instance of that UserControl as the Content of a ContentPane or if you want to show it in a WPF Window then you would put an instance of it as the Content of your WPF Window instance.