Sorry for the delay. I tried the sample and I see what you mean. The Wisej.Web.Page is a top level control and cannot be used a child of another control. The reason is that when you make a page visible using page1.Show() it automatically becomes the main page: Application.MainPage. That’s how you can navigate different pages in Wisej.
We have three types of top level controls: Page, Desktop and Form. The Page is always top level and always only one active at any given time. Forms are always on top of the active Page, if any. The Desktop can be top level, like a page, or it can be embedded in a page. Forms appear inside the active Desktop, if any. Forms can float or can be children, like a panel, if you set the TopLevel property to false.
In y our case, I tried your sample and it’s easy to make it work. I just changed the base class to UserControl:
public partial class Page2 : UserControl
Once you do that the sample works well.
I attached the modified file.
I also noticed that you just add the page to the panel without setting the location and size and it overflows to the right. You can dock it, anchor it, set the size within the parent panel.
I’m not sure I understand the issue. Can you please send me a small sample app that shows what you need to do?
You can attach it to an answer or email it to firstname.lastname@example.org.
In general a wisej page is shown automatically when you call page1.Show(). Or you can assign it to Application.MainPage = page1. However, I don’t think this is what you are looking for.