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

Represents an AIPrompt item, the default item of the RadAIPrompt.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ConversationalUI.dll

Syntax:

C#
public class RadAIPromptItem : HeaderedContentControl

Inheritance: objectRadAIPromptItem

Derived Classes: RadAIPromptCommandsItemRadAIPromptInputItemRadAIPromptOutputItem

Constructors

Initializes a new instance of the RadAIPromptItem class.

C#
public RadAIPromptItem()

Fields

IconProperty

DependencyProperty

Identifies the Icon dependency property.

C#
public static readonly DependencyProperty IconProperty

IconTemplateProperty

DependencyProperty

Identifies the IconTemplate dependency property.

C#
public static readonly DependencyProperty IconTemplateProperty

IsActiveProperty

DependencyProperty

Identifies the IsActive dependency property.

C#
public static readonly DependencyProperty IsActiveProperty

Properties

Gets or sets the icon shown in the header for this item.

C#
public object Icon { get; set; }
Remarks:

By default a Uri object pointing to an svg image is expected which is displayed in a RadSvgImage. You can also pass a different value and modify the look by setting the IconTemplate property.

IconTemplate

DataTemplate

Gets or sets DataTemplate applied to the icon ContentPresenter in the RadAIPromptItem ControlTemplate. The default IconTemplate contains an RadSvgImage with its UriSource property bound to the Icon property.

C#
public DataTemplate IconTemplate { get; set; }

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

C#
public bool IsActive { get; }

Methods

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs