Class Card
Represents a class which defines the properties that can be used to customize a card item in the CardMessage.
Inheritance
Namespace: Syncfusion.XForms.Chat
Assembly: Syncfusion.SfChat.XForms.dll
Syntax
public class Card : BindableObject, ICard, IDisposable
Constructors
Card()
Initializes a new instance of the Card class.
Declaration
public Card()
Fields
ButtonsProperty
Identifies the Buttons Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty ButtonsProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
DescriptionProperty
Identifies the Description Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty DescriptionProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ImageProperty
Identifies the Image Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty ImageProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
SubtitleProperty
Identifies the Subtitle Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty SubtitleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TitleProperty
Identifies the Title Xamarin.Forms.BindableProperty.
Declaration
public static readonly BindableProperty TitleProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
Buttons
Gets or sets the list of buttons to be displayed at the bottom of the card.
Declaration
public IList<CardButton> Buttons { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IList<CardButton> |
Description
Gets or sets the description of the card.
Declaration
public string Description { get; set; }
Property Value
Type |
---|
System.String |
Image
Gets or sets the image to be displayed in the card.
Declaration
public ImageSource Image { get; set; }
Property Value
Type |
---|
Xamarin.Forms.ImageSource |
Subtitle
Gets or sets the subtitle of the card.
Declaration
public string Subtitle { get; set; }
Property Value
Type |
---|
System.String |
Title
Gets or sets the title of the card.
Declaration
public string Title { get; set; }
Property Value
Type |
---|
System.String |
Methods
Dispose()
Disposes the managed resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | if true - release both managed and unmanaged resources; if false - release only unmanaged resources. |