Remove custom view scalibility

I want to remove the ability to scale custom view after putting it on the image. Is there anyway we can achieve this?

5 Replies

RS Ramya Soundar Rajan Syncfusion Team April 7, 2020 10:28 AM UTC

Hi Daxa Varsani, 
 
Greetings from Syncfusion. 
 
You can achieve your requirement by setting the IsResizable property to false in CustomViewSettings as like the below codesnippet. 
 
            
 Image image = new Image() { WidthRequest = 200, HeightRequest = 200 }; 
 var assembly = typeof(App).GetTypeInfo().Assembly; 
 image.Source = ImageSource.FromResource("DarkThemeSample.image.png", assembly); 
 Editor.AddCustomView(image,new Syncfusion.SfImageEditor.XForms.CustomViewSettings() {           IsResizable=false}); 
      … 
 
Please let us know, if you need any further assistance on this. 
 
Regards, 
Ramya S 



DV Daxa Varsani replied to Ramya Soundar Rajan May 15, 2020 05:35 AM UTC

Hi Daxa Varsani, 
 
Greetings from Syncfusion. 
 
You can achieve your requirement by setting the IsResizable property to false in CustomViewSettings as like the below codesnippet. 
 
            
 Image image = new Image() { WidthRequest = 200, HeightRequest = 200 }; 
 var assembly = typeof(App).GetTypeInfo().Assembly; 
 image.Source = ImageSource.FromResource("DarkThemeSample.image.png", assembly); 
 Editor.AddCustomView(image,new Syncfusion.SfImageEditor.XForms.CustomViewSettings() {           IsResizable=false}); 
      … 
 
Please let us know, if you need any further assistance on this. 
 
Regards, 
Ramya S 


if we set IsResizable to false, then the custom view is not rotating. so when we apply this setting can you please confirm, we will not able to rotate custom view icon?


RS Ramya Soundar Rajan Syncfusion Team May 18, 2020 06:10 AM UTC

Hi Daxa Varsani, 
 
We would like to let you know that we could not rotate the custom view by dragging when setting IsResizable as false. This is the default behavior in SfImageEditor. You can rotate the custom view based on a particular angle using Angle property in CustomViewSettings as shown in the below code snippet. 
 
Editor.AddCustomView(image, new CustomViewSettings() { IsResizable=false, Angle=45}); 
 
Please let us know, if you need any further assistance on this. 
 
Regards, 
Ramya S 



DV Daxa Varsani May 18, 2020 06:20 AM UTC

I want to rotate custom view by dragging. how can I achieve this?



RS Ramya Soundar Rajan Syncfusion Team May 19, 2020 02:22 PM UTC

Hi Daxa Varsani,  
 
As we informed earlier, we don't have support to rotate the custom view when setting IsResizable as false. We have considered this as feature request, and you can track the status of this feature from below link.          
  
  
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have immediate plan to implement this feature since we committed with already planned work. So, this feature will be available any of our upcoming release. 
  
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal. 
 
Regards, 
Ramya S 


Loader.
Up arrow icon