Not able to re-size a diagram shape above 10000

4 posts, 0 answers
  1. Jeevan
    Jeevan avatar
    5 posts
    Member since:
    Jan 2014

    Posted 05 May 2014 Link to this post

    Hi 

    We are using Diagram control and have Diagramshape inside this control. Now when we try to re-size this shape using SettingsPane the maximum width and height of the shape can reach only up to 10,000 and does not go beyond that.
    Is there some way by which we can get rid of any restriction on the size of diagramshape using SettingsPane.

    Regards
    JC
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 06 May 2014 Link to this post

    Hello Jeevan,

    We have set this limitation for performance purposes. If you set very big width / height to a Shape (which might happen by mistake , fast type in SettingsPane) the application might freeze. This issue actaully can be reproduced with setting big width / height to a Path which has StrokeDashArray set to "1 0".

    Could you please elaborate a bit more on your scenario ? Do you really need to set Sizes bigger than 10000 x 10000 ?

    Regards,
    Petar Mladenov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jeevan
    Jeevan avatar
    5 posts
    Member since:
    Jan 2014

    Posted 12 May 2014 in reply to Petar Mladenov Link to this post

    Hi Petar

    Thanks for the reply. Our application deals with images of sizes in the range of 50k x 50k or more. The application can see these images at different zoom levels. So at a particular time may be user will be able to look at the entire image at a smaller zoom (scale) value or only a part of image at a larger zoom value.
    So is there some way that I can use DiagramShape with this.

    Regards
    Jeevan


  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 May 2014 Link to this post

    Hello Jeevam,

    As I managed to understand, you have very big images but they not initially shown with their original sizes in the DiagramShapes. If so and if the issue may occur only when the Diagram is zoomed in, please note that zooming in Diagram will only create a ScaleTransform and will not change the Size of the DiagramItems.

    However, you can edit the default style of DiagramSettingsPane and update the NumericUpdown controls to increase their Maximum property which is set to 10000.

    Regards,
    Petar Mladenov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top