New to Telerik UI for WinForms? Start a free 30-day trial

Base for selectable AI Prompt toolbar items that lazily create and retain their toolbar visual and associated view.

Definition

Namespace:Telerik.WinControls.UI.AIPrompt

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public abstract class RadAIPromptItem

Inheritance: objectRadAIPromptItem

Derived Classes: RadAIPromptInputItemRadAIPromptMoreActionsItemRadAIPromptOutputItem

Constructors

C#
protected RadAIPromptItem()

Properties

Gets a boolean value indicating whether the item is currently active.

C#
public bool IsActive { get; protected set; }

Gets or sets the image displayed for the item in the toolbar.

C#
public Image ItemImage { get; set; }

Gets or sets the SVG image displayed for the item in the toolbar.

C#
public RadSvgImage ItemSvgImage { get; set; }

Gets or sets the text displayed for the item in the toolbar.

C#
public string ItemText { get; set; }

Methods

Creates the toolbar visual that lets the user select this item.

C#
protected abstract AIPromptToolbarItem CreateToolbarItem()
Returns:

AIPromptToolbarItem

Creates the view displayed when this item is selected.

C#
protected abstract AIPromptViewBase CreateView()
Returns:

AIPromptViewBase

Creates and caches the toolbar visual on first access, copying this item's active state and display images and text.

C#
public virtual AIPromptToolbarItem GetToolbarVisualItem()
Returns:

AIPromptToolbarItem

The toolbar visual associated with this item.

Creates and caches this item's view on first access and associates the view with this item.

C#
public virtual AIPromptViewBase GetView()
Returns:

AIPromptViewBase

The view displayed when this item is active.

Activates this item in its owning RadAIPromptElement, if it has an owner.

C#
protected virtual void OnToolbarItemClick()