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

Stores the image, descriptive text, price, and actions used to render a product card in chat.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ChatProductCardDataItem : BaseChatCardDataItem, INotifyPropertyChanged

Inheritance: objectBaseChatCardDataItemChatProductCardDataItem

Implements: INotifyPropertyChanged

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

Constructors

Initializes the content and actions displayed by a product card.

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

The product image.

titlestring

The product title.

ratingstring

The rating text shown with the product.

subtitlestring

The secondary descriptive text.

pricestring

The price text.

actionsIEnumerable<ChatCardAction>

The actions rendered below the product details.

userDataobject

Application-defined data associated with the card.

Properties

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

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

Gets or sets the image displayed in the product card.

C#
public Image Image { get; set; }

Gets or sets the price text displayed in the card.

C#
public string Price { get; set; }

Gets or sets the rating text displayed with the product.

C#
public string Rating { get; set; }

Gets or sets the secondary descriptive text displayed in the card.

C#
public string Subtitle { get; set; }

Gets or sets the product title displayed in the card.

C#
public string Title { get; set; }