Class
PromptInputButtonAction

Represents an action item displayed in the RadPromptInputElement more button dropdown.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class PromptInputButtonAction : INotifyPropertyChanged

Inheritance: objectPromptInputButtonAction

Implements: INotifyPropertyChanged

Constructors

PromptInputButtonAction(string, Image, Action)

Initializes a new instance of the PromptInputButtonAction class with the specified button text, icon, and action to execute when the button is pressed.

Declaration

cs-api-definition
public PromptInputButtonAction(string text, Image icon, Action action)

Parameters

text

string

The text to display on the button. Cannot be null.

icon

Image

The icon image to display on the button. Can be null if no icon is desired.

action

Action

The action to execute when the button is clicked. Cannot be null.

PromptInputButtonAction(string, RadSvgImage, Action)

Initializes a new instance of the PromptInputButtonAction class with the specified button text, icon, and action to execute when the button is pressed.

Declaration

cs-api-definition
public PromptInputButtonAction(string text, RadSvgImage svgIcon, Action action)

Parameters

text

string

The text to display on the button. Cannot be null.

svgIcon

RadSvgImage

The SVG icon to display on the button. Can be null if no icon is desired.

action

Action

The action to execute when the button is clicked. Cannot be null.

Properties

Action

Gets or sets the action executed when the item is invoked.

Declaration

cs-api-definition
public Action Action { get; set; }

Property Value

Action

ImageIcon

Gets or sets the image icon for the action.

Declaration

cs-api-definition
public Image ImageIcon { get; set; }

Property Value

Image

SvgIcon

Gets or sets the SVG icon for the action.

Declaration

cs-api-definition
public RadSvgImage SvgIcon { get; set; }

Property Value

RadSvgImage

Text

Gets or sets the display text of the action.

Declaration

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

Property Value

string

Methods

OnPropertyChanged(string)

Raises the PropertyChanged event.

Declaration

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

Parameters

propertyName

string

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged