Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. XAML form opening problem?

XAML form opening problem?

Scheduled Pinned Locked Moved WPF
csharpwpfquestionhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dotnetkanna
    wrote on last edited by
    #1

    Hi, Im using framework3.5 WPF using C#,i have designed with three main menus namely client,product and order this menu is designed in mainform and im having client.xaml,product.xaml and order.xaml. in main form im having stackpanel.when im clicking the client menu the client.xaml form it should be open within the mainform stackpanel and product,order correspondigly..how can i achieve this?? Rgrds kanna

    P 1 Reply Last reply
    0
    • D Dotnetkanna

      Hi, Im using framework3.5 WPF using C#,i have designed with three main menus namely client,product and order this menu is designed in mainform and im having client.xaml,product.xaml and order.xaml. in main form im having stackpanel.when im clicking the client menu the client.xaml form it should be open within the mainform stackpanel and product,order correspondigly..how can i achieve this?? Rgrds kanna

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      If I understand you correctly, you have 3 "windows" in your application, 1 of which is a container. The container should then open 1 of the other windows in the stackpanel. If this is the case, the best way to do this is to make the other 2 windows UserControls instead. These can then be hosted in your stackpanel, 1 with its Visibilty set to Visible and 1 set to Collapsed - this means you'll only see 1 item in the stackpanel at a time. Then, use a trigger to change the Visibility of the items based on the menu click.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles | MoXAML PowerToys

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups