Hi,
We use the SfChat control and works as expected on page load. We are using MVVM and have a binding declared for Messages. When new TextMessage objects are added to the collection, the UI does not update.
Syncfusion SfChat -18.4.0.39
Xamarin.Forms - 5.0.0.1931
Property Definition:
private ObservableCollection<object> _messages = new ObservableCollection<object>();
public ObservableCollection<object> Messages
{
get { return _messages; }
set
{
_messages = value;
RaisePropertyChanged(() => Messages);
}
}
XAML Declaration:
<sfChat:SfChat Messages="{Binding Messages}"
ShowOutgoingMessageAvatar="True"
ShowIncomingMessageAvatar="True"
MessageShape="RoundedRectangle"
ShowTimeBreak="True"
BackgroundColor="Transparent"
ShowOutgoingMessageAuthorName="False"
ShowIncomingMessageAuthorName="True"
OutgoingMessageTimestampFormat="T"
IncomingMessageTimestampFormat="T"
IsBusy="{Binding IsSending}"
CanAutoScrollToBottom="True"
SendMessageCommand="{Binding SendMessageCommand}"
CurrentUser="{Binding CurrentUser}" >
Please advise.
Kind regards,
Paul