New to Telerik UI for WinForms? Start a free 30-day trial

Adapts a ChatCarouselMessage for the chat view and retains its horizontal scroll position.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CarouselMessageDataItem : BaseChatDataItem, IDataItem, INotifyPropertyChanged

Inheritance: objectBaseChatDataItemCarouselMessageDataItem

Implements: IDataItemINotifyPropertyChanged

Inherited Members BaseChatDataItem.OnPropertyChanged(string)BaseChatDataItem.MessageBaseChatDataItem.ChatMessagesViewElementBaseChatDataItem.ActualSizeBaseChatDataItem.MessageTypeBaseChatDataItem.StatusBaseChatDataItem.TagBaseChatDataItem.IsOwnMessageBaseChatDataItem.PropertyChanged...

Constructors

Initializes the item with the carousel message to display.

C#
public CarouselMessageDataItem(ChatCarouselMessage message)
Parameters:messageChatCarouselMessage

The carousel message represented by this item.

Properties

Gets the typed carousel-message reference captured when this item was constructed.

C#
public ChatCarouselMessage CarouselMessage { get; }

Replacing the inherited Message property does not update this reference.

Gets or sets the carousel's horizontal scroll-bar position.

C#
public int ScrollOffset { get; set; }

The carousel visual saves this value when the scroll position changes and restores it when the item is synchronized.