Focused and Unfocused events of SfImageEditor

Hi,

I would like to know when the Focused and Unfocused events of SfImageEditor are triggered. If I click on a toolbar item or select a textbox on an image in the editor, the Focused event does not get triggered. 

I would like to disable scrolling of the my view when the editor is in focus and enable scrolling when it is unfocused.

Thank you,
Madhu

5 Replies 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team September 28, 2020 12:28 PM UTC

Hi Madhu Ganesh,

Currently we are forwarding your query to the corresponding team, hence we will update the possible details on or before September 30, 2020.  

Regards,
Sridevi S.  
 



SS Sridevi Sivakumar Syncfusion Team September 30, 2020 10:35 AM UTC

Hi Madhu Ganesh,

Thanks for your patience.

On further validated, your requirement has been achieved by invoking the following events to have a similar effect of focused and unfocused with ToolbarItemSelected event and ItemUnselected respectively.

https://help.syncfusion.com/xamarin/image-editor/save#itemunselected-event


https://help.syncfusion.com/xamarin/image-editor/toolbarcustomization#toolbaritemselected-event

 
 <imageeditor:SfImageEditor.ToolbarSettings>  
                    <imageeditor:ToolbarSettings ToolbarItemSelected="ToolbarSettings_ToolbarItemSelected" />  
   </imageeditor:SfImageEditor.ToolbarSettings>  
 
  
           
 <imageeditor:SfImageEditor HeightRequest="400" WidthRequest="700" ItemSelected="editor_ItemSelected" ItemUnselected="editor_ItemUnselected" Source="{Binding Source}" x:Name="editor" Focused="editor_Focused"  Unfocused="editor_Unfocused">
            </imageeditor:SfImageEditor>
  
 

We would like to let you know that, currently we are implemented the tap event for SfImageEditor. To get the focus attention, you can use that tap event for achieving your requirement. This will be available in our upcoming Volume 3, 2020 which is expected to be rolled out by the first week of October 2020.

It can be tracked through our feedback portal below.

Link:  https://www.syncfusion.com/feedback/9454/tapped-event-support-for-sfimageeditor

Regards,
Sridevi S. 
 


Marked as answer

MG Madhu Ganesh October 6, 2020 02:52 PM UTC

Is this how I invoke tap event to SfImageEditor as you mentioned above?


<imageeditor:SfImageEditor x:Name="ImgEditor" Grid.Row="2" Source="{Binding ImgName}">
                                <!--<imageeditor:SfImageEditor.GestureRecognizers>
                                    <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/>
                                </imageeditor:SfImageEditor.GestureRecognizers>-->
                            </imageeditor:SfImageEditor>

Thanks


MG Madhu Ganesh October 6, 2020 03:04 PM UTC

I already have the following in my code

<imageeditor:SfImageEditor.ToolbarSettings>  
                    <imageeditor:ToolbarSettings ToolbarItemSelected="ToolbarSettings_ToolbarItemSelected" />  
   </imageeditor:SfImageEditor.ToolbarSettings>  

 <imageeditor:SfImageEditor HeightRequest="400" WidthRequest="700" ItemSelected="editor_ItemSelected" ItemUnselected="editor_ItemUnselected" Source="{Binding Source}" x:Name="editor" >
            </imageeditor:SfImageEditor>
  

The problem is now if I select pen tool to draw something on the image, I want to be able to scroll after I am done drawing on the image. ItemUnselected event is only triggered if a shape or text box was selected and gets unselected. With a pen tool, there is no Unselected event triggered so how would I enable scrolling again? Which is why I thought the Unfocused event would help in this situation

Thanks,
Madhu


HM Hemalatha Marikumar Syncfusion Team October 7, 2020 04:22 PM UTC

Hi Madhu, 
 
Use case: I want to be able to scroll after I am done drawing on the image. 
 
We would like to let you know that there are two approaches to achieve your requirement 
 
#1: 
 
We would like to let you know that ImageEdited event invoke whenever edit the image and completed the freehand drawing.  
 
#2: 
 
We also suggest to add any of toggle button in the image editor header toolbar items, once you have completed the drawing , just toggle that, by the way of getting the corresponding toggling event, you can enable the scrolling. 
 
 
How I invoke tap event to SfImageEditor as you mentioned above? 
  
We really regret for providing the misleading information about the Tapped event. Actually, we have already prepared and planned the feature wish list for that release, so, we couldn’t implement this feature. Since having the already committed work, we have planned to implement this in any of our upcoming releases.  
 
Regards,
Hemalatha M. 


Loader.
Up arrow icon