Development for multiple panels for a window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 1 window with several panels that fill the window depending on what view the user wants to see. Is there any way to speed development instead of changing ordering(z-order) for a particular panel and visually develop on it
I would like to be able go back and forth between panels visually without chaning the code. In Visual Studio one panel will have priority based on the first panel added to the window
Thanks
Marc
 
* "=?Utf-8?B?TWFyYw==?= said:
I have 1 window with several panels that fill the window depending on
what view the user wants to see. Is there any way to speed development
instead of changing ordering(z-order) for a particular panel and
visually develop on it.

There is nothing in the .NET Framework. All you can do is adding a
'TabControl' and place other controls in front of the tabs to hide them.
 
Marc said:
I have 1 window with several panels that fill the window depending on what
view the user wants to see. Is there any way to speed development instead
of changing ordering(z-order) for a particular panel and visually develop on
it.
I would like to be able go back and forth between panels visually without
chaning the code. In Visual Studio one panel will have priority based on
the first panel added to the window.
Thanks,
Marc

Panel controls, as you have already found, are not the best way to manage
this type of interface.

A better approach is to use UserControls instead of panels. Create a
UserControl with each layout, then place an instance of each UserControl on
your main window, just like you did with the panels. When you need to work
with the layout of a particular UserControl, you can open it just like you
would a form, so you can change it around without worrying about the other
UserControls.
 
Back
Top