本文介绍了TileControl Devexpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个应用程序,使用TileControl
和点击瓷砖,它正在导航到窗体。
表单包含GridControl,当我在gridview上执行双击事件时,它导航到另一个窗体并显示结果。
现在的问题是,当我点击Tile Menu的后退按钮时,它直接显示主菜单,而不是具有GridControl的窗体。
我想首先显示GridControl,然后显示主菜单。
请帮助我解决一个问题。

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.

推荐答案

我可以看到你正在使用,它的。

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;

相关链接:





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

这篇关于TileControl Devexpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 07:15