MessageBase
Represents the most basic abstraction of message that can report action results.
Definition
Namespace:Telerik.Windows.Controls.ConversationalUI
Assembly:Telerik.Windows.Controls.ConversationalUI.dll
Syntax:
public abstract class MessageBase : IReportMessageResult, INotifyPropertyChanged
Inheritance: objectMessageBase
Derived Classes:
Implements:
Constructors
Initializes a new instance of the MessageBase class.
public MessageBase(MessageDisplayPosition displayPosition, Author author, MessageType messageType, DateTime creationDate = default)
Properties
Gets or sets a value that indicates whether the message will automatically report results. Setting it to true will force any properties that are marked with ReportResult attribute to raise the ReportMessageResult event of RadChat.
public bool AutoReport { get; set; }
Implements:
Gets or sets a value that indicates whether the message will be removed after it reports a result.
public bool CloseAfterReport { get; set; }
Implements:
Gets the time when the message was created.
public DateTime CreationDate { get; }
Gets the DisplayPosition.
public MessageDisplayPosition DisplayPosition { get; }
Gets the MessageType.
public MessageType MessageType { get; set; }
Gets or sets a value that indicates whether response action should create a text inline message with its result. The formatted text result can be found and modified in ReportMessageResult's event arguments.
public bool PostResultInline { get; set; }
Implements:
Gets the collection of ReportActions that are associated with the message. The default UI implementation will visualize them as buttons.
public RadObservableCollection<ResponseAction> ReportActions { get; }
Implements:
Gets the view model instance that handles report results. It is initialized in accordance of the MessageDisplayPosition of the message.
public ReportResultViewModel ReportViewModel { get; }
Methods
Raises the PropertyChanged event.
Subscribes to child response actions.
protected virtual void SubscribeToMessageResult(Action<object, MessageResultEventArgs> callBack)
Validates whether the chosen DisplayPosition is supported by the message.
protected void ValidateMessageDisplayPosition()
Events
Event is raised when a property of the type changes its value.
public event PropertyChangedEventHandler PropertyChanged
Implements: