This is a migrated thread and some comments may be shown as answers.

Manipulation Adorner minimum size

2 Answers 62 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
John Harrison
Top achievements
Rank 1
John Harrison asked on 05 Nov 2014, 12:23 PM
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 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 07 Nov 2014, 08:50 AM
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.

 
0
John Harrison
Top achievements
Rank 1
answered on 10 Nov 2014, 08:38 AM
That's great

Thanks!
Tags
Diagram
Asked by
John Harrison
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
John Harrison
Top achievements
Rank 1
Share this question
or