Defines members for handling response actions and message results.
Definition
Namespace:Telerik.Windows.Controls.ConversationalUI
Assembly:Telerik.Windows.Controls.ConversationalUI.dll
Syntax:
public class ReportResultViewModel : IReportMessageResult, INotifyPropertyChanged
Inheritance: objectReportResultViewModel
Derived Classes:
Implements:
Constructors
Initializes a new instance of the ReportResultViewModel class.
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 associated message.
public MessageBase Message { get; }
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:
Methods
Reports message result when cancel action is executed.
protected virtual void OnCancelMessageResult()
Reports message result when commit action is executed.
protected virtual void OnCommitMessageResult()
Raises the PropertyChanged event.
Extracts the result values for a certain property and raises ReportMessageResult event.
Reports message result for a certain property.
protected virtual void ReportMessageResultIfNeeded(string propertyName)
Events
public event PropertyChangedEventHandler PropertyChanged
Implements:
Event that is raised when the associated message reports a result (key property change or action execution).
public event EventHandler<MessageResultEventArgs> ReportMessageResult