Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi-Page WPF Application

Tags:

c#

windows

wpf

I am new to desktop application development and have a pretty basic question. I have a WPF form named MainWindow, how should I go about having multiple pages on this, such as "User Management", "Manage Content" etc..

I think I have the following options:

  1. Use multiple forms
  2. Tabs
  3. Group Box?

Any clarification would be great!

like image 976
Prisoner Avatar asked Feb 24 '11 18:02

Prisoner


2 Answers

  • Well in my most recent application I started by using a TabControl, that's a safe and rather easy way to go.

  • Recently switched the tabcontrol with a StackPanel with a series of Expanders inside. I styled the expanders to have them display the header vertically and expand horizontally... somewhat similar to the first xbox dashboard. And it looks and works great! =)

  • Another alternative would be to use a Page instead of a window... Then you would just have to Navigate to each different page.

EDIT: Here's an example of a multi-page application... might be close to what you need.

like image 86
Filipe Miguel Avatar answered Oct 05 '22 11:10

Filipe Miguel


The solution I went with that suited what I was looking for was using WPF Pages but thanks for your answers.

like image 44
Prisoner Avatar answered Oct 05 '22 12:10

Prisoner