TileControl Devexpress

≯℡__Kan透↙ 提交于 2019-12-24 05:44:09

问题


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:

  1. Content Containers
  2. Hierarchy and Screens
  3. How To: Create Content Containers Hierarchy


来源:https://stackoverflow.com/questions/14574381/tilecontrol-devexpress

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!