Resize shapes but in the same position

5 posts, 0 answers
  1. Maite
    Maite avatar
    33 posts
    Member since:
    Mar 2014

    Posted 14 Oct 2014 Link to this post

    Hello, 

    I have 2 or more shapes in my diagram. When I make big o little all shapes at once, they changes their position and I will have to place all at the previous position. There is somehow to resize this shapes in the same position?

    Thanks, 

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

    Posted 16 Oct 2014 Link to this post

    Hello Maite,

    I am not completely sure that I understand your scenario. I assume that you make a group selection and then you resize the selected shapes and your issue is that the shapes change their position after you resize them. If this is your scenario, please note that changing the position of the shapes is expected. Keep in mind that the RadDiagram tries to keep the positions as well as the sizes of the shapes inside the selection relative. This is the designed and expected behavior of the group selection and group resizing.

    Regards,
    Pavel R. Pavlov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Maite
    Maite avatar
    33 posts
    Member since:
    Mar 2014

    Posted 16 Oct 2014 in reply to Pavel R. Pavlov Link to this post

    Hello Pavel, 

    Correctly, this is my scenario. Can I change this situation? 

    Thanks, 

    Pavel.
  5. Maite
    Maite avatar
    33 posts
    Member since:
    Mar 2014

    Posted 16 Oct 2014 in reply to Maite Link to this post

    Ups! Sorry, I put your name in my sign. 
  6. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 20 Oct 2014 Link to this post

    Hello,

    You can achieve your requirements by creating a custom Resizing service. You can subscribe to its Resizing event and you will be able to understand which shapes have been resized and you will be able to update their size and position accordingly. You can find more information about the service itself in this article. You can see a sample customization of the services of the RadDiagram in our XAML SDK repository.

    Let us know if you encounter any issues.

    Regards,
    Pavel R. Pavlov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready