How to create Binding for Custom Template ?

Hi,

I have followed the instructions here to create a template for a custom message

https://help.syncfusion.com/xamarin/chat/messages#template-for-message



I have updated the code to include this:

            if (item as IImageMessage != null)

            {

                return imageMessageTemplate;

            }



In my ViewCell. I have an image control - how do I bind that to the Source property?







1 Reply

SV Suja Venkatesan Syncfusion Team October 18, 2021 02:50 PM UTC

Hi Sunny Si, 

Thank you for contacting Syncfusion support, 

We have prepared a simple sample with custom template for binding source for the image message and attached in the following link for your reference. 


Please have a look at this sample and revert to us with more details if we have misunderstood your requirement. 

Regards, 
Suja.  


Loader.
Up arrow icon