ClassReportResultViewModel
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
ReportResultViewModel(MessageBase)
Initializes a new instance of the ReportResultViewModel class.
Declaration
public ReportResultViewModel(MessageBase message)
Parameters
message
Properties
AutoReport
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.
CloseAfterReport
Gets or sets a value that indicates whether the message will be removed after it reports a result.
Declaration
public bool CloseAfterReport { get; set; }
Property Value
Implements
Message
Gets the associated message.
PostResultInline
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.
Declaration
public bool PostResultInline { get; set; }
Property Value
Implements
ReportActions
Gets the collection of ReportActions that are associated with the message. The default UI implementation will visualize them as buttons.
Declaration
public RadObservableCollection<ResponseAction> ReportActions { get; }
Property Value
Implements
Methods
OnCancelMessageResult()
Reports message result when cancel action is executed.
Declaration
protected virtual void OnCancelMessageResult()
OnCommitMessageResult()
Reports message result when commit action is executed.
Declaration
protected virtual void OnCommitMessageResult()
OnPropertyChanged(string)
Raises the PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
OnReportMessageResult(string)
Extracts the result values for a certain property and raises ReportMessageResult event.
Declaration
protected virtual void OnReportMessageResult(string propertyName)
Parameters
propertyName
ReportMessageResultIfNeeded(string)
Reports message result for a certain property.
Declaration
protected virtual void ReportMessageResultIfNeeded(string propertyName)
Parameters
propertyName
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements
ReportMessageResult
Event that is raised when the associated message reports a result (key property change or action execution).
Declaration
public event EventHandler<MessageResultEventArgs> ReportMessageResult
Event Value