• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Visual Studio Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Download
 
 
Support
 
 
Community
 
 
Forums
 
 
 
Visual Studio Developer Center > Visual Studio Forums > Visual Studio Extensibility > Nested Shapes in SDK 1.1
Ask a questionAsk a question
Search Forums:
  • Search Visual Studio Extensibility Forum Search Visual Studio Extensibility Forum
  • Search All Visual Studio Forums Search All Visual Studio Forums
  • Search All MSDN Forums Search All MSDN Forums
 

AnswerNested Shapes in SDK 1.1

  • Saturday, August 23, 2008 1:41 AMPeteGoo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    Hi,
    DSL Nested shapes routing support was due to be added to SDK 1.1 according to the VSX team blog entry at http://blogs.msdn.com/vsxteam/archive/2008/08/05/what-have-we-been-up-to.aspx.

    The official release announcement only mentioned Print Preview.

    Did this feature make it? Is there any documentation?

    thanks,
    Pete
    • Edited byPeteGoo Saturday, August 23, 2008 1:41 AMspelling
    •  
    • ReplyReply
    • QuoteQuote
     

Answers

  • Wednesday, September 03, 2008 6:56 AMJean-Marc PrieurMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0
    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
    • Marked As Answer byJean-Marc PrieurMSFT, ModeratorWednesday, September 03, 2008 6:56 AM
    •  
    • ReplyReply
    • QuoteQuote
     

All Replies

  • Thursday, August 28, 2008 7:41 AMFeng ChenMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Vote As Helpful
    0
    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.
    • Proposed As Answer byFeng ChenMSFT, ModeratorThursday, August 28, 2008 8:24 AM
    • Marked As Answer byFeng ChenMSFT, ModeratorFriday, August 29, 2008 3:42 AM
    • Unmarked As Answer byJean-Marc PrieurMSFT, ModeratorWednesday, September 03, 2008 6:56 AM
    •  
    • ReplyReply
    • QuoteQuote
     
  • Wednesday, September 03, 2008 10:00 AMPeteGoo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
     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
    • ReplyReply
    • QuoteQuote
     
  • Wednesday, September 03, 2008 10:40 AMJean-Marc PrieurMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    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
    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement