Class RadAIPromptItem
Represents an AIPrompt item, the default item of the RadAIPrompt.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ConversationalUI.dll
Syntax
public class RadAIPromptItem : HeaderedContentControl
Remarks
Use this class for implementing customized items/views on top of the built-in RadAIPromptInputItem, RadAIPromptOutputItem and RadAIPromptCommandsItem
Constructors
RadAIPromptItem()
Fields
IconProperty
Identifies the Icon dependency property.
Declaration
public static readonly DependencyProperty IconProperty
Field Value
System.Windows.DependencyProperty
|
IconTemplateProperty
Identifies the IconTemplate dependency property.
Declaration
public static readonly DependencyProperty IconTemplateProperty
Field Value
System.Windows.DependencyProperty
|
IsActiveProperty
Identifies the IsActive dependency property.
Declaration
public static readonly DependencyProperty IsActiveProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Icon
Gets or sets the icon shown in the header for this item.
Declaration
public object Icon { get; set; }
Property Value
System.Object
|
Remarks
By default a System.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
public DataTemplate IconTemplate { get; set; }
Property Value
System.Windows.DataTemplate
|
IsActive
Gets a boolean value indicating whether the item is currently active.
Declaration
public bool IsActive { get; }
Property Value
System.Boolean
|
Methods
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
|