How to use xamarin forms sfchat timeBreakTemplateSelector

https://help.syncfusion.com/xamarin/chat/time-break
There have content about Sfchat Tiembreak but there not have detail content
I want customizing Timebreak in Sfchat
can you write at here how to make custom Timebreak (xaml, cs)




And I question how to get event about focused input text box

thanks read this

1 Reply

KK Karthikraja Kalaimani Syncfusion Team March 5, 2020 11:18 AM UTC

Hi Sacrege,

Thank you for contacting Synfusion support.

Regarding Customizing the Time Break view of SfChat
 
The SfChat allows you to customize the Time break view by assigning the DataTemplateSelector to the SfChat.TimeBreakTemplate property. For more detailsplease refer to the below UG link,

UG link : https://www.syncfusion.com/forums/152137/how-to-use-xamarin-forms-sfchat-timebreaktemplateselector

Regarding Focusing Event for Message Editor in SfChat.

We regret to let you know that currently we don’t have direct support for your requirement. Butwe have a workaround to achieve your requirement. Editor view can be get by reflecting the inner child elements of the chat control. For more detailsplease refer to the below code example and attached sample.

Code Example,


 
[C#]
….
   var footerView = (Grid)this.sfChat.GetType().GetRuntimeProperties().FirstOrDefault(x => x.Name.Equals("FooterView")).GetValue(this.sfChat); 
            ((((footerView.Children[1] as ContentView).Content as SfBorder).Content as Grid).Children[0] as Editor).Focused += Editor_Focused; 
….

private void Editor_Focused(object sender, FocusEventArgs e) 
        { 
 
        } 


Sample link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/SfChatDemo929369063.zip

We hope this helps, please let us know if need any further assistance from us.

Regards,
Karthik Raja 


Loader.
Up arrow icon