Class
SuggestedAction

Represents a class that wraps command logic for the suggested actions feature.

Definition

Namespace:Telerik.UI.Xaml.Controls.ConversationalUI

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class SuggestedAction : ViewModelBase, INotifyPropertyChanged

Inheritance: objectViewModelBaseSuggestedAction

Implements: INotifyPropertyChanged

Inherited Members ViewModelBase.VerifyPropertyName(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.PropertyChangedOverride(string)ViewModelBase.PropertyChanged

Constructors

SuggestedAction(string)

Initializes a new instance of the SuggestedAction class.

Declaration

cs-api-definition
public SuggestedAction(string text)

Parameters

text

string

SuggestedAction(string, ImageSource)

Initializes a new instance of the SuggestedAction class.

Declaration

cs-api-definition
public SuggestedAction(string text, ImageSource icon)

Parameters

text

string

icon

ImageSource

Properties

Command

Gets the command that is executed when the action is executed.

Declaration

cs-api-definition
public virtual ICommand Command { get; }

Property Value

ICommand

Icon

Gets or sets the displayed icon.

Declaration

cs-api-definition
public ImageSource Icon { get; set; }

Property Value

ImageSource

Text

Gets or sets the displayed text.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string