树容器 [英] Tree container

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

问题描述

我的任务是更新我们的DSL实施。我需要将一个类似于对象的树视图放入一个形状容器中。这是我第一次使用可视化和建模SDK,所以我一直在努力争取它,而且实际上并没有真正获得



我在主题上找到了这个帖子:


http://social.msdn.microsoft.com/Forums/en-US/dslvsarchx/thread/c699000b-be1b-4259-b3c5-e4e82c877504


讨论3个选项。


在案例1中,您仍然可以使用基于表单的DSL(展开MinimalWinFroms或最小的WPF设计器)。这将生成一个基于表单的设计器(作为.resx和.settings),您可以在其中控制演示文稿,并从数据绑定中获益
,但其余的(模型存储,创建,序列化,规则,验证)是通常由域模型提供。



在案例2中,您可以使用标签缩进的常规隔间。你不会有折叠但是


在第3种情况下,你可以做一个表格跟随你的形状,但你需要知道:

- 这将需要很多自定义代码

- 这将不是高性能的(不超过包含此Windows.Form或WPF窗口的几个形状,否则滚动将采取很多时间)。


我理解案例2 - 添加空格 - 是的!转发我。


案例1和3 ....不是那么多。有没有人有案例1和3的例子或链接到一个谈论它们的网站?如果不了解结果或所涉及的努力,就无法做出明智的决定。


这个帖子也有点旧(2010)有没有其他方法可以做到这一点大约在过去几年?


谢谢。


-Cam

解决方案

Hello Cam。


不,自从这个线程以来,DSL工具中没有结构变化


问候

p>

I have been tasked with updating our DSL implementation. I need to get a treeview like object into a shape container. This is my first exposure to working with the Visualization and Modeling SDK so I have been fighting with it a fair bit and not really getting very far.

I found this thread on the topic:

http://social.msdn.microsoft.com/Forums/en-US/dslvsarchx/thread/c699000b-be1b-4259-b3c5-e4e82c877504

which discusses 3 options.

In case 1, you can still use the form based DSLs (unfold a MinimalWinFroms ou a Minimal WPF Designer). this will produce a form based designer (as the .resx and .settings), where you control the presentation, and benefit from the data binding, but the rest (model store, creation, serialization, rules, validation) is provided by the domain model as usual.

In case 2, you could use a regular compartment where the label is indented. You won't have the folding however

In case 3, you could make so that a form would follow your shape, but you need to know that:
- this will require a lot of custom code
- this won't be performant (no more than a few shapes containing this Windows.Form or WPF window, otherwise the scrolling will take a lot of time).

I understand case 2 - add spaces - Yeah! Go me.

Case 1 and 3.... not so much. Does anyone have an example of case 1 and 3 or links to a site that talk about them? Can't really make an informed decision without being understanding the result or the effort involved.

This thread is also a bit old (2010) are there any other methods for doing this that have come about in the last couple of years?

Thanks.

-Cam

解决方案

Hello Cam.

No, there were no structural changes in the DSL Tools since this thread

Regards


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

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