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

Stores the image, descriptive text, and actions displayed by an image card in chat.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ChatImageCardDataItem : BaseChatCardDataItem, INotifyPropertyChanged

Inheritance: objectBaseChatCardDataItemChatImageCardDataItem

Implements: INotifyPropertyChanged

Inherited Members BaseChatCardDataItem.OnPropertyChanged(string)BaseChatCardDataItem.UserDataBaseChatCardDataItem.PropertyChanged

Constructors

Initializes the image and text content and the actions displayed by the card.

C#
public ChatImageCardDataItem(Image image, string title, string subtitle, string text, IEnumerable<ChatCardAction> actions, object userData)
Parameters:imageImage

The image displayed in the card.

titlestring

The card title.

subtitlestring

The secondary descriptive text.

textstring

The main text displayed below the subtitle.

actionsIEnumerable<ChatCardAction>

The actions rendered as clickable rows.

userDataobject

Application-defined data associated with the card.

Properties

Gets or sets the actions rendered as clickable rows below the card content. Replacing this sequence raises PropertyChanged.

C#
public IEnumerable<ChatCardAction> Actions { get; set; }

Gets or sets the image displayed in the card.

C#
public Image Image { get; set; }

Gets or sets the secondary descriptive text.

C#
public string Subtitle { get; set; }

Gets or sets the main text displayed below the subtitle.

C#
public string Text { get; set; }

Gets or sets the title displayed above the card's descriptive text.

C#
public string Title { get; set; }