I have created a new WPF Application using Visual Studio 2010 so I have a default MainWindow.xaml, I have created a folder ‘Views’ which holds a couple of xaml pages that are different views for my app.
What I want to do is to have these views in the MainWindow.xaml and transition between them at certain time intervals. Could anyone give me an idea on how to achieve this?
Thanks!
For a simple scenario (without any complications or etc), you would do the same as you would do with a parent object composing a set of child objects.
then you would want to visually place it inside your UI hierarchy as in a child of a Grid or a Canvas for an instance.
For a better use, try DI or IoC container in order not be worried about creating the object and keeping references.
http://code.google.com/p/autofac/
You might also want to think about the communication between your Views and Window. For that, please have a look at EventAggregator implementations
https://stackoverflow.com/questions/2343980/event-aggregator-implementation-sample-best-practices