Question

Actually,I have done my application using DevExpress MetroUIView.
I have a TileContainer and on clicking tile, it is showing GridView page and on doubleclick on GridView, it is navigating to Details page.
Up to now, everything works fine. My problem is: when I click back button at the details page, it is directly navigating to TileContainer page instead of GridView page.
I want in a way like, when I click back button from Details page, it should redirect to GridView page and if I click back button on Gridview page, it should redirect to TileContainer screen.

Était-ce utile?

La solution

Here is the answer for the DevExpress DocumentManager version v12.2 and it's WindowsUIView(MetroUIView):

To make it possible to navigate back from the current screen(with item detail) to upper level(with grid) you should make the current content container aware to it's parent container via ContentConteiner.Parent property.
Thus your containers hierarchy should looks like this:

// mainTileContainer(MainMenu) 
//  -> gridItemsPage(GridControl)
//    -> itemDetailPage(DetailForm)
//...
mainTileContainer.ActivationTarget = gridItemsPage;
gridItemsPage.Parent = mainTileContainer;
itemDetailPage.Parent = gridItemsPage;

Related links:

  1. Content Containers
  2. Hierarchy and Screens
  3. How To: Create Content Containers Hierarchy
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top