Skip to content

Unsure about creating a Multi Page App? #3909

Closed Answered by tznind
NopeImNotHere asked this question in Q&A
Discussion options

You must be logged in to vote

Here is a multi page demo where main Toplevel is written using TerminalGuiDesigner targetting v2.

Program.cs

using Terminal.Gui;
using YourNamespace;

Application.Init();

Application.Run(new MyTop());
Application.Shutdown();

MyTop.cs

public partial class MyTop
{
    private Window win1 = new Window() { Title = "Window1" ,Y=1, Width = Dim.Fill(),Height = Dim.Fill()};
    private Window win2 = new Window() { Title = "Window2", Y = 1, Width = Dim.Fill(), Height = Dim.Fill() };
    private Window win3 = new Window() { Title = "Window3", Y = 1, Width = Dim.Fill(), Height = Dim.Fill() };
    public MyTop() {

        InitializeComponent();

        CanFocus = true;

        window1MenuItem.Ac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NopeImNotHere
Comment options

Answer selected by NopeImNotHere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants