질문하기질문하기
 

답변됨Nested Shapes in SDK 1.1

답변

모든 응답

  • 2008년 8월 28일 목요일 오전 7:41Feng Chen중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     제안된 답변
    Hello Pete,

    Yes, this feature has been added and the DSL team are working on a sample to demonstrate this new feature, which was done into the runtime, but not the authoring.

    I believe this sample will be out in a few days. And I'll let you know as soon as possible.

    Thanks!


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 2008년 9월 3일 수요일 오전 6:56Jean-Marc PrieurMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    Hello.
    I posted something about nested shapes in SDK 1.1 on my blog ([DSL Tools] Support of Nested shapes in Visual Studio 2008 SP1). The sample should follow soon on CodeGallery.
    Jean-Marc
  • 2008년 9월 3일 수요일 오전 10:00PeteGoo 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
     Hi Jean-Marc,
    Thanks for clarifying this. I have implemented nested shapes before in one of my DSL projects and implemented similar code. 

    To allow shapes to be re-parented by moving them from container to container I had to implement a lot of custom code.

    Among the problems I found were Z-Order issues where the re-parenting of shapes caused the shapes to be hidden behind the new parent, this also happened in collapsing and expanding the container. It seemed that the Z-Order property was automagically generated from the order of the shapes in the child shapes collection and after trying and failing to control this I had to override the implementation of Z-Order.

    In my opinion the issues outlined in your first post were not blocking, but the Z-Order bug was pretty irritating, more frustrating however was the amount of effort required to implement nested shapes. I guess that some of this stuff will get ironed out with the increased inhouse re-use of the dsl runtime for ms projects. I would like to say that I do truly believe that the DSL runtime and the tooling is a phenomenal achievement that has stood the test of time since VS 2005 with very little change and I'm glad to see people realizing is capability.

    I will look forward to seeing the implementation of your 2nd post.

    Thanks again,
    Pete
  • 2008년 9월 3일 수요일 오전 10:40Jean-Marc PrieurMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Thanks Pete for your nice feedback.

    You are right, the Z-order problem was quite a nighmare implementing the 2nd proposition of the book. With the current implementation you'll be able to get rid of a lot of painful custom code.

    I understand you are rather interested in the case when shapes can move outside of their parent. I'll write a second post as soon as I can.

    Jean-Marc