Custom RadDiagramContainerShape Example

4 posts, 0 answers
  1. Michael
    Michael avatar
    8 posts
    Member since:
    Nov 2008

    Posted 23 Feb 2014 Link to this post

    Do you have a simple example of a custom container where the header is removed? I wanted to create a container control where i can control the layout of the items within the container.

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 26 Feb 2014 Link to this post

    Hi,

    I am happy to inform you that such approach is demonstrated in our online Swimlane demo.

    Please take a look at it and let me know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
  3. UI for WPF is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    8 posts
    Member since:
    Nov 2008

    Posted 26 Feb 2014 in reply to Pavel R. Pavlov Link to this post

    Pavel,

    Thank you for getting back to me. I did look at the swimlane example, but i was looking for an example without the header in the container. I was able to hide it, but when it's dragged and re-sized it reappears and doesn't seem to be calculating the dimensions correctly. I couldn't seem to find a property to hide and / or set the height of the header to 0.
  5. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 28 Feb 2014 Link to this post

    Hi,

    You are right that there is no straightforward way to achieve the required behavior. However, there is a possible way to hide the header of the container shapes.

    You can try extracting the default template of the RadDiagramContainerShape control. You can follow the steps described in this article.

    For your convenience I extracted it along with all resources that it uses in the attached file. Once imported into your application you can try setting the Visibility property of the ContentPresenter called "NormalContent" to Collapsed.

    Please give this approach a try and let me know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
Back to Top