Class
RadAIPromptItem

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

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ConversationalUI.dll

Syntax:

cs-api-definition
public class RadAIPromptItem : HeaderedContentControl

Inheritance: objectRadAIPromptItem

Derived Classes: RadAIPromptCommandsItemRadAIPromptInputItemRadAIPromptOutputItem

Constructors

RadAIPromptItem()

Initializes a new instance of the RadAIPromptItem class.

Declaration

cs-api-definition
public RadAIPromptItem()

Fields

IconProperty

Identifies the Icon dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IconProperty

Field Value

DependencyProperty

IconTemplateProperty

Identifies the IconTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IconTemplateProperty

Field Value

DependencyProperty

IsActiveProperty

Identifies the IsActive dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsActiveProperty

Field Value

DependencyProperty

Properties

Icon

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

Declaration

cs-api-definition
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "Reviewed.")]
public object Icon { get; set; }

Property Value

object

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

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.

Declaration

cs-api-definition
public DataTemplate IconTemplate { get; set; }

Property Value

DataTemplate

IsActive

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

Declaration

cs-api-definition
public bool IsActive { get; }

Property Value

bool

Methods

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnMouseLeftButtonDown(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs