tags:

views:

47

answers:

1

Am just creating myself a WPF application, like outlook. am having all forms seperately. I just want one main window and and am haivng navigation pane in left side. when ever i click items in pane, i just want to load corresponding form to the main window in right container. How i can do this?

+1  A: 

Use a design pattern like MVP or MVVM..

Also you probably want to use the Command pattern which will benefit the maintainability of your UI related commands.

Tutorials:

WPF Patterns

This tutorial should get you started with these patterns. Paul Stovell shows how to implement MVP and MVVM and displays strenghts and weaknesses of each pattern.

OutlookBar:

This link should get you started with the UI part of your challenge. It shows how to use such a control and implement the Command pattern.

HTH

Stephane
@ Stephane Thanks, ya i look that paul MVVM article, i cant understand that mvvm pattern. they are not using forms. Is there anyother simpler way?
deep
You should try to find a sample project and use it as a starting point like http://www.codeproject.com/KB/WPF/MVVMForDummies.aspx It has some learning curve to use these, but it is really worth it at the end.ps: When you say forms, are you referring to xaml views?
Stephane
Yes Stephane.. forms i meant here is xaml form views. i will start learn now itself. thanks. if you got any things regarding this mean send me.
deep
+1 for great links.
Tri Q