New to Telerik UI for WPFStart a free 30-day trial

Defines members for handling response actions and message results.

Definition

Namespace:Telerik.Windows.Controls.ConversationalUI

Assembly:Telerik.Windows.Controls.ConversationalUI.dll

Syntax:

C#
public class ReportResultViewModel : IReportMessageResult, INotifyPropertyChanged

Inheritance: objectReportResultViewModel

Derived Classes: InlineViewModelOverlayViewModelPopupViewModel

Implements: INotifyPropertyChangedIReportMessageResult

Constructors

Initializes a new instance of the ReportResultViewModel class.

C#
public ReportResultViewModel(MessageBase message)
Parameters:messageMessageBase

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.

C#
public bool AutoReport { get; set; }

Implements: IReportMessageResult.AutoReport

Gets or sets a value that indicates whether the message will be removed after it reports a result.

C#
public bool CloseAfterReport { get; set; }

Implements: IReportMessageResult.CloseAfterReport

Gets the associated message.

C#
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.

C#
public bool PostResultInline { get; set; }

Implements: IReportMessageResult.PostResultInline

Gets the collection of ReportActions that are associated with the message. The default UI implementation will visualize them as buttons.

C#
public RadObservableCollection<ResponseAction> ReportActions { get; }

Implements: IReportMessageResult.ReportActions

Methods

Reports message result when cancel action is executed.

C#
protected virtual void OnCancelMessageResult()

Reports message result when commit action is executed.

C#
protected virtual void OnCommitMessageResult()

Raises the PropertyChanged event.

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Extracts the result values for a certain property and raises ReportMessageResult event.

C#
protected virtual void OnReportMessageResult(string propertyName)
Parameters:propertyNamestring

Reports message result for a certain property.

C#
protected virtual void ReportMessageResultIfNeeded(string propertyName)
Parameters:propertyNamestring

Events

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged

Event that is raised when the associated message reports a result (key property change or action execution).

C#
public event EventHandler<MessageResultEventArgs> ReportMessageResult