Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatMessagesViewElement : VirtualizedScrollPanel<BaseChatDataItem, BaseChatItemElement>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementScrollViewElement<VirtualizedStackContainer<BaseChatDataItem>>VirtualizedScrollPanel<BaseChatDataItem, BaseChatItemElement>ChatMessagesViewElement...
Implements:
Inherited Members
Constructors
Fields
public static RadProperty AvatarSizeProperty
public static RadProperty ShowAvatarsProperty
public static RadProperty ShowMessagesOnOneSideProperty
Properties
Gets or sets the size of the avatar images.
public SizeF AvatarSize { get; set; }
public RadChatElement ChatElement { get; }
public bool IsUpdateSuspended { get; }
Gets or sets whether avatar images will be displayed in the chat window next to messages.
public bool ShowAvatars { get; set; }
Gets or sets whether messages will be displayed aligned to only one side of the chat window or on both.
public bool ShowMessagesOnOneSide { get; set; }
Gets or sets the time interval between messages that will trigger the automatic addition of a Time separator. If set to Zero no Time separators will be added.
public TimeSpan TimeSeparatorInterval { get; set; }
Methods
public virtual void BeginUpdate()
This method creates an object that implements IVirtualizedElementProvider. Child elements are not yet created in this method.
protected override IVirtualizedElementProvider<BaseChatDataItem> CreateElementProvider()
IVirtualizedElementProvider<BaseChatDataItem>
A new instance of an implementation of IVirtualizedElementProvider.
Overrides:
Creates an instance of ItemScroller. Child elements are not yet created in this method.
protected override ItemScroller<BaseChatDataItem> CreateItemScroller()
Overrides:
Creates the view element.
protected override VirtualizedStackContainer<BaseChatDataItem> CreateViewElement()
Overrides:
public void EndUpdate()
Determines whether the chat view is currently scrolled to the bottom.
public virtual bool IsScrolledToBottom()
true if scrolled to bottom or no scrollbar is needed; otherwise, false.
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
protected virtual void OnCardActionClicked(object sender, CardActionEventArgs e)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Scrolls the chat view to display the most recent messages at the bottom.
public virtual void ScrollToBottom()
Scrolls to the specified data item in the chat view.
public virtual void ScrollToDataItem(BaseChatDataItem item)
The data item to scroll to.
Scrolls to the specified message in the chat view.
public virtual void ScrollToMessage(ChatMessage message)
The message to scroll to.
public virtual bool ShouldAddTimeSeparator(BaseChatDataItem item, BaseChatDataItem previousItem)
public virtual void Update(ChatMessagesViewElement.UpdateModes updateMode)