VS 2010 类设计器未正确渲染关系
我正在使用 Visual Studio 2010 类图设计器,它可以很好地显示父类与构成父类属性的类之间的关系。在下面的示例中,我们可以看到 IFoo 接口有一个名为 Bar 的属性,其类型为 IBar。
但是,如果我添加在设计器外部创建的现有类、接口等...不显示关系。请参阅下面的示例...
代码都是相同的;并纠正;但设计表面上的表现是不同的。对于现有的类,是否有一种方法可以指示设计器建立正确的链接,而不必使用设计器手动重新创建项目?
I'm using the Visual Studio 2010 Class Diagram designer and it does a nice job of showing relationships between a parent class and the classes that make up the properties of the parent. In the below sample, we can see that the IFoo interface has a property named Bar which is of type IBar.
However, if I add existing classes, interfaces, etc... that were created outside the designer it does not show the relationships. See sample below...
The code is all the same; and correct; but the representation on the design surface is different. For existing classes, is there a way to instruct the designer to make the correct links without having to manually recreate the items using the designer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法找到对整个图表执行此操作的方法,但我确实找到了一个属性级别上下文菜单项(例如显示为关联 ),一次修复一个属性。
I wasn't able to find a way to do it for the whole diagram, but I did find a Property level context-menu item (e.g. Show as Association) which fixes it one Property at a time.