RotatableElements is not ok when the property IsResizable = false

Hi,
When I used this code below, the rotation of elements (CustomView), is not ok. When I changed to IsResizable = true, the rotation is ok, but is very difficult because the image resized and rotation in same time. My expectative is that image only rotate.
Image customImage = new Image() { HeightRequest = 37, WidthRequest = 37 };
Assembly assembly = Assembly.GetAssembly(typeof(AortaAbdominal));
customImage.Source = ImageSource.FromResource("com.Cartografia.Imagens.aneurismaleve.png", assembly);
sftEditor.RotatableElements = ImageEditorElements.CustomView;
//Posicionamento padrão e diasble resizable.
CustomViewSettings customViewSettings = new CustomViewSettings()
{
Bounds = new Rectangle(10, 50, 0, 0),
IsResizable = false ----->>>> NOT OK
};
sftEditor.AddCustomView(customImage, customViewSettings);
Tks a lot.

5 Replies

VR Vignesh Ramesh Syncfusion Team May 25, 2020 04:10 PM UTC

Hi Henrique, 

Greetings from Syncfusion. 
  
We would like to inform that, we don't have support to rotate the custom view when setting IsResizable as false. Already, 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,  
Vignesh. 



HE Henrique May 27, 2020 01:08 PM UTC

So,

When I create de CustomView, after is possible change your angle? Ex: using one Button to this?

If possible, what's this way to this.

Tks a lot.


RS Ramya Soundar Rajan Syncfusion Team May 28, 2020 07:31 AM UTC

Hi Henrique, 
 
We would like to suggest that you can rotate the custom view based on a particular angle using Angle property in CustomViewSettings as shown in the below code snippet.  
 
 CustomViewSettings settings; 
          
    
 
 settings = new CustomViewSettings() { IsResizable=false,Angle=45}; 
 editor.ImageLoaded += Editor_ImageLoaded; 
                              
     
 
        private void Editor_ImageLoaded(object sender, ImageLoadedEventArgs args) 
        { 
            Image customImage = new Image() { HeightRequest = 200, WidthRequest = 200 }; 
            Assembly assembly = Assembly.GetAssembly(typeof(GettingStarted)); 
            customImage.Source = ImageSource.FromResource("IESample.ITypogy1.png", assembly); 
            editor.AddCustomView(customImage, settings); 
        } 
 
        private void CustomView_Clicked(object sender, EventArgs e) 
        { 
            settings.Angle +=45; 
        } 
 
 
Please let us know, if you need further assistance on this. 
 
Regards, 
Ramya S 



HE Henrique May 28, 2020 11:30 AM UTC

So,

This example is perfect to me.

Thanks.


RS Ramya Soundar Rajan Syncfusion Team May 29, 2020 06:33 AM UTC

Hi Henrique, 
 
Thanks for your update. 
 
Please let us know if you would require any further assistance. 
 
Regards, 
Ramya S 


Loader.
Up arrow icon