Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to make a Parentwindow show multiple childwindows inside it in WPF to give a paging feeling to the user?
Posted

There is no parent-child relationship between windows in WPF. (And even in Forms, such relationship inherited from Control is not really functional.)

To make a feel of paging you can use just one main window (best option for most applications, by the way) and different layout designs. For example, you can use StackPanel hosting a set of other panels. What you though as of a "child" windows will be one of those children panels. In this case control of pages could be done using a regular scroll bar.

Alternatively, you can dynamically load some panels with children controls from data and flip-page those panel using some control implementing Left-Right commands (or Up-Down if you prefer).

The design described above could be modified if the number of such panels a not so big. You can pre-create them all and control their visibility: hide all but one and this way shuffle the only visible child panel.

These are just the simplest ideas. I saw a number of advanced design with animation, etc. For example, people implemented a number of flip-page book designs.

See:
http://wpfbookcontrol.codeplex.com/[^],
http://blogs.msdn.com/b/mitsu/archive/2006/11/05/flip-page-demo-using-wpf.aspx[^],
Creating a 3D book-shaped application with speech and ink using WPF 3.5[^],
http://windowsclient.net/downloads/folders/wpfsamples/entry5100.aspx[^].

You will be able to find more if you Google.

—SA
 
Share this answer
 
Is this what you are trying to accomplish?

http://msdn.microsoft.com/en-us/library/ms750478.aspx[^]
 
Share this answer
 
Comments
Nivas Maran 16-Nov-11 4:51am    
this is a WPF Browser Application.. Could u please send me in WPF Application..
Actually, In windows application there is a MDIParent Form. But in case of WPF Apllication there is no MDIParent window.. How to overcome it.. THen How to create MDIParent form in WPF Aplication.
[no name] 16-Nov-11 5:06am    
Read a little closer Navigation can be used in browser-based apps AND stand-alone apps.

Your question doesn't make sense. An MDI app doesn't use navigation from form to form. Forms can be opened closed in any order. Perhaps you are discrbing a Wizard application?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900