Class
ReportResultViewModel

Defines members for handling response actions and message results.

Definition

Namespace:Telerik.Windows.Controls.ConversationalUI

Assembly:Telerik.Windows.Controls.ConversationalUI.dll

Syntax:

cs-api-definition
public class ReportResultViewModel : IReportMessageResult, INotifyPropertyChanged

Inheritance: objectReportResultViewModel

Derived Classes: InlineViewModelOverlayViewModelPopupViewModel

Implements: INotifyPropertyChangedIReportMessageResult

Constructors

ReportResultViewModel(MessageBase)

Initializes a new instance of the ReportResultViewModel class.

Declaration

cs-api-definition
public ReportResultViewModel(MessageBase message)

Parameters

message

MessageBase

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

cs-api-definition
public bool AutoReport { get; set; }

Property Value

bool

Implements IReportMessageResult.AutoReport

CloseAfterReport

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

Declaration

cs-api-definition
public bool CloseAfterReport { get; set; }

Property Value

bool

Implements IReportMessageResult.CloseAfterReport

Message

Gets the associated message.

Declaration

cs-api-definition
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

cs-api-definition
public bool PostResultInline { get; set; }

Property Value

bool

Implements IReportMessageResult.PostResultInline

ReportActions

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

Declaration

cs-api-definition
public RadObservableCollection<ResponseAction> ReportActions { get; }

Property Value

RadObservableCollection<ResponseAction>

Implements IReportMessageResult.ReportActions

Methods

OnCancelMessageResult()

Reports message result when cancel action is executed.

Declaration

cs-api-definition
protected virtual void OnCancelMessageResult()

OnCommitMessageResult()

Reports message result when commit action is executed.

Declaration

cs-api-definition
protected virtual void OnCommitMessageResult()

OnPropertyChanged(string)

Raises the PropertyChanged event.

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

OnReportMessageResult(string)

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

Declaration

cs-api-definition
protected virtual void OnReportMessageResult(string propertyName)

Parameters

propertyName

string

ReportMessageResultIfNeeded(string)

Reports message result for a certain property.

Declaration

cs-api-definition
protected virtual void ReportMessageResultIfNeeded(string propertyName)

Parameters

propertyName

string

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

ReportMessageResult

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

Declaration

cs-api-definition
public event EventHandler<MessageResultEventArgs> ReportMessageResult

Event Value

EventHandler<MessageResultEventArgs>