Class RadChatElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadChatElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadChatElement()
Declaration
public RadChatElement()
Properties
Author
Gets or sets the current author. This instance is used when Auto
Declaration
public virtual Author Author { get; set; }
Property Value
AutoAddUserMessages
Gets or sets a value indicating whether messages typed by the user will automatically be added as Chat
Declaration
public bool AutoAddUserMessages { get; set; }
Property Value
System.
|
AvatarSize
Gets or sets the size of the avatar images.
Declaration
public SizeF AvatarSize { get; set; }
Property Value
System.
|
ChatFactory
InputTextBox
IsOverlayShown
Declaration
public bool IsOverlayShown { get; protected set; }
Property Value
System.
|
IsPopupOverlayShown
Declaration
public bool IsPopupOverlayShown { get; protected set; }
Property Value
System.
|
MessagesViewElement
Declaration
public ChatMessagesViewElement MessagesViewElement { get; }
Property Value
OverlayElement
OverlayPopupElement
Declaration
public LightVisualElement OverlayPopupElement { get; }
Property Value
SendButtonElement
Declaration
public ChatSendButtonElement SendButtonElement { get; }
Property Value
ShowAvatars
Gets or sets whether avatar images will be displayed in the chat window next to messages.
Declaration
public bool ShowAvatars { get; set; }
Property Value
System.
|
ShowMessagesOnOneSide
Gets or sets whether messages will be displayed aligned to only one side of the chat window or on both.
Declaration
public bool ShowMessagesOnOneSide { get; set; }
Property Value
System.
|
ShowToolbarButtonElement
Declaration
public ChatShowToolbarElement ShowToolbarButtonElement { get; }
Property Value
SuggestedActionsElement
Declaration
public ChatSuggestedActionsElement SuggestedActionsElement { get; }
Property Value
TimeSeparatorInterval
Gets or sets the time interval between messages that will trigger the automatic addition of a Time separator.
If set to System.
Declaration
public TimeSpan TimeSeparatorInterval { get; set; }
Property Value
System.
|
ToolbarElement
Methods
AddMessage(ChatMessage)
Adds a new message to the chat. Typical messages are Chat
Declaration
public virtual void AddMessage(ChatMessage message)
Parameters
Chat The message to be displayed in the chat. |
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateInputTextBox()
CreateMessagesListView()
Declaration
protected virtual ChatMessagesViewElement CreateMessagesListView()
Returns
CreateOverlayPopupElement()
Declaration
protected virtual OverlayPopupElement CreateOverlayPopupElement()
Returns
CreateSendButton()
Declaration
protected virtual ChatSendButtonElement CreateSendButton()
Returns
CreateShowToolbarButton()
Declaration
protected virtual ChatShowToolbarElement CreateShowToolbarButton()
Returns
CreateStackLayoutElement()
Declaration
protected virtual StackLayoutElement CreateStackLayoutElement()
Returns
CreateSuggestedActionsElement()
Declaration
protected virtual ChatSuggestedActionsElement CreateSuggestedActionsElement()
Returns
CreateToolbarElement()
CreateTypingIndicatorElement()
Declaration
protected virtual LightVisualElement CreateTypingIndicatorElement()
Returns
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
HideOverlay()
Hides any overlays that are currently displayed by the control.
Declaration
public virtual void HideOverlay()
HideTypingIndicator()
Declaration
public virtual void HideTypingIndicator()
OnCardActionClicked(Object, CardActionEventArgs)
Fires the Card
Declaration
protected virtual void OnCardActionClicked(object sender, CardActionEventArgs e)
Parameters
System. The card which triggered the event. |
Card The event arguments. |
OnInputTextBoxKeyDown(Object, KeyEventArgs)
Declaration
protected virtual void OnInputTextBoxKeyDown(object sender, KeyEventArgs e)
Parameters
System.
|
System.
|
OnItemFormatting(ChatItemElementEventArgs)
Fires the Item
Declaration
protected virtual void OnItemFormatting(ChatItemElementEventArgs e)
Parameters
Chat The event arguments. |
OnSendButtonElementClick(Object, EventArgs)
Declaration
protected virtual void OnSendButtonElementClick(object sender, EventArgs e)
Parameters
System.
|
System.
|
OnSendMessage(SendMessageEventArgs)
Fires the Send
Declaration
protected virtual void OnSendMessage(SendMessageEventArgs e)
Parameters
Send The event arguments. |
OnShowToolbarButtonElementClick(Object, EventArgs)
Declaration
protected virtual void OnShowToolbarButtonElementClick(object sender, EventArgs e)
Parameters
System.
|
System.
|
OnSuggestedActionClicked(SuggestedActionEventArgs)
Fires the Send
Declaration
protected virtual void OnSuggestedActionClicked(SuggestedActionEventArgs e)
Parameters
Suggested The event arguments. |
OnTimeSeparatorAdding(TimeSeparatorEventArgs)
Fires the Add
Declaration
protected virtual void OnTimeSeparatorAdding(TimeSeparatorEventArgs e)
Parameters
Time The event arguments. |
OnToolbarActionClick(ToolbarActionEventArgs)
Fires the Toolbar
Declaration
protected virtual void OnToolbarActionClick(ToolbarActionEventArgs e)
Parameters
Toolbar The event arguments. |
PostPaintChildren(IGraphics, Rectangle, Single, SizeF)
Declaration
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.
|
System.
|
System.
|
Overrides
ShowOverlay(ChatOverlayMessage)
Shows the provided overlay in the control.
Declaration
public virtual void ShowOverlay(ChatOverlayMessage message)
Parameters
Chat The message that contains the overlay info. |
ShowTypingIndicator(Author[])
Declaration
public virtual void ShowTypingIndicator(params Author[] authors)
Parameters
Author[]
authors
|
SubmitUserMessage()
Declaration
protected virtual void SubmitUserMessage()
UnwireEvents()
Declaration
protected virtual void UnwireEvents()
WireEvents()
Declaration
protected virtual void WireEvents()
Events
CardActionClicked
Occurs when the user clicks on a Card Action
Declaration
public event CardActionEventHandler CardActionClicked
Event Type
ItemFormatting
Occurs when the data item of a visual element is changed and the element is prepared for visualization.
Declaration
public event ChatItemElementEventHandler ItemFormatting
Event Type
SendMessage
Occurs when the user performs an action e.g hits the Enter key, clicks the Send message button, clicks on a Suggested Action or a Card Action, clicks OK on an overlay.
Declaration
public event SendMessageEventHandler SendMessage
Event Type
SuggestedActionClicked
Occurs when the user clicks on a Suggested Action
Declaration
public event SuggestedActionEventHandler SuggestedActionClicked
Event Type
TimeSeparatorAdding
Occurs after a new message is added. Allows you to decide whether a time separator should be inserted before the currently added message.
Declaration
public event TimeSeparatorEventHandler TimeSeparatorAdding
Event Type
ToolbarActionClicked
Occurs when the user clicks on a Toolbar Action
Declaration
public event ToolbarActionEventHandler ToolbarActionClicked