我们可以在UIMAP中更改层次结构 [英] Can we change the hierarchy in UIMAP

查看:86
本文介绍了我们可以在UIMAP中更改层次结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从浏览器窗口向我的UIMAP添加了5个控件。它们在以下层次结构中添加:  BrowserWindow-> Document-> Controls。 现在,由于某种原因,我必须从同一浏览器窗口添加另一个对象。当我将新对象
添加到UIMAP中时,它会添加以下层次结构:BrowserWindow-> Document 1 - >新控制。稍后同样如果我从同一窗口添加另一个控件,它将创建自己的层次结构。

I have added 5 controls from a browser window to my UIMAP. They are added in following hierarchy: BrowserWindow->Document->Controls. Now, for some reason I have to add another object from the same browser window. As I add the new object into UIMAP, it adds in following hierarchy: BrowserWindow->Document 1 - > New Control. Similarly later If I have add another control from same window it will create its own hierarchy.

是否有办法将同一窗口中的对象保持在同一层次结构中,以便于引用该对象?即使没有同时添加对象。

Is there a way to keep the objects from same window in the same hierarchy for easy reference to the object? Even if the objects are not added at the same time.

 

推荐答案

是的,你可以。生成代码时,将其放入设计器文件中。我通常做的是在每次生成代码时都没有写过的另一个文件。然后简单地将属性和相应字段放入
想要它的对象中并复制新类。
Yes you can. When you generate your code it puts it in the designer file. What I typically do is have that in another file that isn't over written everytime I generate code. Then simply put the propertly and corresponding field into the object that you want it in and copy the new class over.


这篇关于我们可以在UIMAP中更改层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆