Commands
RadChat allows you to attach commands that will be executed when certain actions such as SendMessage occur.
Before proceeding check the MVVM Support topic for more details on how to use RadChat in a MVVM setup.
Chat Commands
You could take advantage of the SendMessageCommand that is triggered by two actions when the send-message button is clicked. The command is raised before the Chat auto-creates a ChatItem and adds it to the Items.
Here is a quick example on how to define a command in the ViewModel and bind the SendMessageCommand to it:
And the command Execute method:
Following the definition of RadChat components:
ChatPicker Commands
RadChatPicker control exposes OkCommand and CancelCommand fired when the corresponding "Ok" and "Cancel" buttons are clicked.