问题
I have developed an application using TileControl and on Clicking the Tiles, it is navigating to forms. The forms contains GridControl and when I am performing double click event on gridview,it is navigating to another form and displaying a result. Now the Problem is, when i am clicking the back button of Tile Menu,it is directly showing the main menu,instead of form having GridControl. I want to show the GridControl first and then the Main Menu. Please help me with a solution.
回答1:
I far as I can see you are using the DocumentManager and it's WindowsUIView.
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:
- Content Containers
- Hierarchy and Screens
- How To: Create Content Containers Hierarchy
来源:https://stackoverflow.com/questions/14574381/tilecontrol-devexpress