Manipulation Adorner minimum size

3 posts, 0 answers
  1. John Harrison
    John Harrison avatar
    23 posts
    Member since:
    May 2010

    Posted 05 Nov 2014 Link to this post

    Hi,

    It seems impossible to resize an item to be smaller than 10 units. Is there a setting or something we can do to allow the user to make an items width/height zero?

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

    Posted 07 Nov 2014 Link to this post

    Hello John,

    You can use the following diagram constants:
    public MainWindow()
          {
              DiagramConstants.MinimumAdornerSize = 5;
              DiagramConstants.MinimumShapeSize = 5;
              InitializeComponent();
    MinimumAdornersize will set the minimum size of the manipulation adorner which you use with mouse to resize the shape. For better user experience it's good to keep these 2 constants with equal values.
    However, although they are set to 5 , you will be able to resize the shapes with lower values using the Diagram Settings Pane.

    Regards,
    Petar Mladenov
    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. DevCraft banner
  4. John Harrison
    John Harrison avatar
    23 posts
    Member since:
    May 2010

    Posted 10 Nov 2014 in reply to Petar Mladenov Link to this post

    That's great

    Thanks!
Back to Top