Class RadAIPromptElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.AIPrompt
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadAIPromptElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadAIPromptElement()
Declaration
public RadAIPromptElement()
Properties
ActiveItem
Gets or sets the currently active item.
Declaration
public RadAIPromptItem ActiveItem { get; set; }
Property Value
RadAIPromptItem
|
InputText
Gets or sets the input text.
Declaration
public string InputText { get; set; }
Property Value
System.String
|
Items
Gets the items that represent the different views of the AI Prompt control.
Declaration
public ObservableCollection<RadAIPromptItem> Items { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<RadAIPromptItem>
|
OutputItems
Gets the output items (the responses from the AI).
Declaration
public ObservableCollection<AIPromptOutputItem> OutputItems { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<AIPromptOutputItem>
|
Toolbar
ToolbarPosition
Gets or sets the position of the toolbar.
Declaration
public ToolbarPosition ToolbarPosition { get; set; }
Property Value
ToolbarPosition
|
ViewContainer
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
CallOnOutputItemAction(OutputAction, AIPromptOutputItem)
Declaration
protected virtual bool CallOnOutputItemAction(OutputAction action, AIPromptOutputItem outputItem)
Parameters
OutputAction
action
|
AIPromptOutputItem
outputItem
|
Returns
System.Boolean
|
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateContainerElement()
CreateItemsCollection()
Declaration
protected virtual ObservableCollection<RadAIPromptItem> CreateItemsCollection()
Returns
System.Collections.ObjectModel.ObservableCollection<RadAIPromptItem>
|
CreateOutputItemsCollection()
Declaration
protected virtual ObservableCollection<AIPromptOutputItem> CreateOutputItemsCollection()
Returns
System.Collections.ObjectModel.ObservableCollection<AIPromptOutputItem>
|
CreateToolbarElement()
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnItemsChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
|
OnOutputItemAction(OutputItemActionEventArgs)
Declaration
protected virtual void OnOutputItemAction(OutputItemActionEventArgs args)
Parameters
OutputItemActionEventArgs
args
|
OnOutputItemAdded()
Called when a new item is added to the OutputItems collection.
Declaration
protected virtual void OnOutputItemAdded()
OnOutputItemCopy(AIPromptOutputItem)
Called when the copy button of an AIPromptOutputVisualItem is clicked.
Declaration
protected virtual void OnOutputItemCopy(AIPromptOutputItem outputItem)
Parameters
AIPromptOutputItem
outputItem
The AIPromptOutputItem from the OutputItems collection. |
OnOutputItemRatingChanged(AIPromptOutputItem)
Called when the rating of an AIPromptOutputVisualItem is changed through the UI.
Declaration
protected virtual void OnOutputItemRatingChanged(AIPromptOutputItem outputItem)
Parameters
AIPromptOutputItem
outputItem
The AIPromptOutputItem from the OutputItems collection. |
OnOutputItemRetry(AIPromptOutputItem)
Called when the retry button of an AIPromptOutputVisualItem is clicked.
Declaration
protected virtual void OnOutputItemRetry(AIPromptOutputItem outputItem)
Parameters
AIPromptOutputItem
outputItem
The AIPromptOutputItem from the OutputItems collection. |
OnOutputVisualItemCreated(OutputVisualItemCreatedEventArgs)
Declaration
protected virtual void OnOutputVisualItemCreated(OutputVisualItemCreatedEventArgs args)
Parameters
OutputVisualItemCreatedEventArgs
args
|
OnPromptRequest(PromptRequestEventArgs)
Called when the end-user makes a request by pressing the input or retry button .
Declaration
protected virtual void OnPromptRequest(PromptRequestEventArgs args)
Parameters
PromptRequestEventArgs
args
The PromptRequestEventArgs describing the event. |
ShouldArrangeChild(RadElement)
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
RadElement
child
|
Returns
System.Boolean
|
Overrides
Events
OutputItemAction
Event is raised when the user initiates an interaction with the output visual item.
Declaration
public event OutputItemActionEventHandler OutputItemAction
Event Type
OutputItemActionEventHandler
|
OutputVisualItemCreated
Event is raised when a new item is added to the OutputItems and a new visual item is about to be added to the AIPromptOutputView. The event is suitable to modify or replace the visual item.
Declaration
public event OutputVisualItemCreatedEventHandler OutputVisualItemCreated
Event Type
OutputVisualItemCreatedEventHandler
|
PromptRequest
Event is raised when the user initiates a prompt request.
Declaration
public event PromptRequestEventHandler PromptRequest
Event Type
PromptRequestEventHandler
|