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:
public class ChatProductCardDataItem : BaseChatCardDataItem, INotifyPropertyChanged
Inheritance: objectBaseChatCardDataItemChatProductCardDataItem
Implements:
Inherited Members
Constructors
Initializes the content and actions displayed by a product card.
public ChatProductCardDataItem(Image image, string title, string rating, string subtitle, string price, IEnumerable<ChatCardAction> actions, object userData)
The product image.
titlestringThe product title.
ratingstringThe rating text shown with the product.
subtitlestringThe secondary descriptive text.
pricestringThe price text.
actionsIEnumerable<ChatCardAction>The actions rendered below the product details.
userDataobjectApplication-defined data associated with the card.
Properties
Actions
IEnumerable<ChatCardAction>
Gets or sets the actions rendered as clickable rows below the product details. Replacing this sequence raises PropertyChanged.
public IEnumerable<ChatCardAction> Actions { get; set; }
Gets or sets the rating text displayed with the product.
public string Rating { get; set; }
Gets or sets the secondary descriptive text displayed in the card.
public string Subtitle { get; set; }