-
Notifications
You must be signed in to change notification settings - Fork 755
How to Navigate to Detail View from a List View. #179
Comments
Hello, I had a similar navigation problem to solve. It was little simpler - just showing a pie chart based on data selected in the tree view (in case of no adequate data selected showing just some default pie chart). Perhaps it will bring an idea how to solve your problem. I have used the ModernFrame element, with its:
Command bound to tree view changed selection determines the right data to show and set it in the the FigurePieContentLoader and then in the view model it self - in that property bound to the ModernFrame's Source property. This makes the ModernFrame trying to refresh, which call the content loader to get the view. (just an additional note: It seems to be using its own cache for already used Source values, so the content loaded is not called each time, the source is changed). XAML part:
The view model part:
The content loader:
The UriConverter:
|
I have got a List view with a Grid representing a list of customers.
When I click on one of the rows a "Show Details Button" gets enabled. If a user clicks this Button I would like to navigate from the List View to the Details View of the customer and when I click on Close button at the customer details I would like to Navigate back to the List of Customers view.
How can I pass the selected Customer to my Details View and how can I Navigate back and forth?
I'm able to get this done using pure WPF by having the Main Window reflecting a "Current View" and when I click the Buttons I assign the List or the Details View as current view. But I don't know how to resolve this with Modern UI.
The text was updated successfully, but these errors were encountered: