Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Change View from ViewModel

$
0
0
Hi,
I have a WPF app (MVVM), which loads a default view on Startup. I have a list box with items and based on the user selection, I need to display a different view for each selection. Something like:
The mainwindow has a grid with listbox in column 0 and Default view in Column1.
Listbox Items: Hotel, Flight, Cruise

if an user clicks Hotel, I'll need to show hotel reservations view in Column1 and hide Default View.
If an user clicks Flight, I'll need to show Flight reservations view in column1 and so on.

Any help will be appreciated.

Thank you

Abhi


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>