Represents a chat message that displays a set of suggested actions to the user.
This message type is typically used in conversational interfaces to present users with a list of predefined actions or responses they can select from. It extends the base ChatMessage class to include suggested actions relevant to the current conversation context.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatSuggestedActionsMessage : ChatMessage, INotifyPropertyChanged
Inheritance: objectChatMessageChatSuggestedActionsMessage
Implements:
Inherited Members
Constructors
Initializes a message with suggested actions and application-defined user data.
public ChatSuggestedActionsMessage(IEnumerable<SuggestedActionDataItem> suggestedActions, Author author, DateTime timeStamp, object userData)
The actions the chat should display when this message is added.
authorAuthorThe author associated with the message.
timeStampDateTimeThe time associated with the message.
userDataobjectApplication-defined data associated with the message.
Initializes a message with suggested actions and no additional user data.
public ChatSuggestedActionsMessage(IEnumerable<SuggestedActionDataItem> suggestedActions, Author author, DateTime timeStamp)
The actions the chat should display when this message is added.
authorAuthorThe author associated with the message.
timeStampDateTimeThe time associated with the message.
Properties
Gets or sets whether the horizontal scrollbar is shown for this message's suggested-action list.
public bool ShowScrollBar { get; set; }
AddMessage(ChatMessage) reads this value when adding the message; changing it later does not update the displayed list automatically.
SuggestedActions
IEnumerable<SuggestedActionDataItem>
Gets or sets the action data items used to populate the suggested-action list when this message is added.
public IEnumerable<SuggestedActionDataItem> SuggestedActions { get; set; }
Changing this sequence does not rebuild an already displayed action list.