Class ReportResultViewModel
Defines members for handling response actions and message results.
Inheritance
Namespace: Telerik.Windows.Controls.ConversationalUI
Assembly: Telerik.Windows.Controls.ConversationalUI.dll
Syntax
public class ReportResultViewModel : Object, IReportMessageResult, INotifyPropertyChanged
Constructors
ReportResultViewModel(MessageBase)
Initializes a new instance of the ReportResultViewModel class.
Declaration
public ReportResultViewModel(MessageBase message)
Parameters
MessageBase
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.
Declaration
public bool AutoReport { get; set; }
Property Value
System.Boolean
|
Implements
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
System.Boolean
|
Implements
Message
Gets the associated message.
Declaration
public MessageBase Message { get; }
Property Value
MessageBase
|
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
System.Boolean
|
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
RadObservableCollection<ResponseAction>
|
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
System.String
propertyName
|
OnReportMessageResult(String)
Extracts the result values for a certain property and raises ReportMessageResult event.
Declaration
protected virtual void OnReportMessageResult(string propertyName)
Parameters
System.String
propertyName
|
ReportMessageResultIfNeeded(String)
Reports message result for a certain property.
Declaration
protected virtual void ReportMessageResultIfNeeded(string propertyName)
Parameters
System.String
propertyName
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|
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 Type
System.EventHandler<MessageResultEventArgs>
|