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

Stores the passenger name, flight segments, image, and total displayed by a flight card.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ChatFlightCardDataItem : BaseChatCardDataItem, INotifyPropertyChanged

Inheritance: objectBaseChatCardDataItemChatFlightCardDataItem

Implements: INotifyPropertyChanged

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

Constructors

Initializes the data for a flight card.

C#
public ChatFlightCardDataItem(string passengerName, IEnumerable<FlightInfo> flights, Image image, string total, object userData)
Parameters:passengerNamestring

The passenger name displayed by the card.

flightsIEnumerable<FlightInfo>

The flight segments displayed in the route section.

imageImage

The image displayed between departure and arrival details.

totalstring

The total displayed at the bottom of the card.

userDataobject

Application-defined data associated with the card.

Exceptions: ArgumentNullException

The constructor's initial passenger-name assignment reads its uninitialized character buffer.

Properties

Flights

IEnumerable<FlightInfo>

Gets or sets the flight segments rendered in sequence between the card's departure and arrival headings. Assigning a different sequence raises PropertyChanged; changes within the sequence do not.

C#
public IEnumerable<FlightInfo> Flights { get; set; }

Gets or sets the plane image repeated in each flight segment.

C#
public Image Image { get; set; }

Gets or sets the passenger name displayed by the flight card.

C#
public string PassangerName { get; set; }

Gets or sets the total text displayed at the bottom of the card.

C#
public string Total { get; set; }