In a WPF window I will have buttons on the top and then content below.
In the content section (buttons always stay there) I want to have maybe a "view" with some text boxes and then some other "view" with a datagrid. These "views" I want to have their own code behind class.
On the click of a button I want to be able to add the new "view" and maybe animate a little bit the removal of the old "view"
Dont get to caught up in the animate part.
The thing I want to know is what is the Object/element which can contain these multiple views?
How can I create my "views" with code behind?
How can I add then a new view and dispose of the old view so that views are not kept in memory?
I am a VB'er but if you must do it in C# then go for it.
Thanks all for your help.