CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2020
    Posts
    14

    From MainWindow to A new Window?

    I would like to load a new window?

    In unity3d we used SceneLoad so we could go from scene 1 to scene 2 and it was awesome , in wpf the ways that i found is just a window pop up and that's something i dont want.
    for example this is not good for me ->
    Code:
    RestaurantMenu.Test secW = new RestaurantMenu.Test();
                this.Visibility = Visibility.Hidden;
                secW.Show();
    I dont know if that helps but like the tab control system it stays the same shows different stuff
    Last edited by TheUninvited; August 31st, 2020 at 04:37 PM.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,494

    Re: From MainWindow to A new Window?

    Did you try the tab approach?

  3. #3
    Join Date
    Aug 2020
    Posts
    14

    Re: From MainWindow to A new Window?

    Quote Originally Posted by Arjay View Post
    Did you try the tab approach?
    I think it would be really unprofesionnal to do it with the tab approach.

    Because we are talking about navigate from a window to an other window and it does not seem that way. Plus i can't think of a way to do it with tab control.

  4. #4
    Join Date
    Aug 2020
    Posts
    14

    Re: From MainWindow to A new Window?


  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,494

    Re: From MainWindow to A new Window?

    Quote Originally Posted by TheUninvited View Post
    I think it would be really unprofesionnal to do it with the tab approach.

    Because we are talking about navigate from a window to an other window and it does not seem that way. Plus i can't think of a way to do it with tab control.
    Using tabs is unprofessional? That's a curious response.

  6. #6
    Join Date
    Aug 2020
    Posts
    14

    Re: From MainWindow to A new Window?

    Quote Originally Posted by Arjay View Post
    Using tabs is unprofessional? That's a curious response.
    You misundestood , i meant that using tabs for my case is not the best option

    I shouldn't use tab control to load a window.

  7. #7
    Join Date
    Aug 2020
    Posts
    14

    Re: From MainWindow to A new Window?

    I figured it out using wpf multiple views.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured