XAML form opening problem?
-
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
-
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
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
UserControl
s instead. These can then be hosted in your stackpanel, 1 with itsVisibilty
set toVisible
and 1 set toCollapsed
- 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.