Renders passenger, route, and total details from a ChatFlightCardDataItem.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatFlightCardElement : BaseChatCardElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementBaseChatCardElementChatFlightCardElement...
Implements:
Inherited Members
Constructors
Initializes a flight card bound to the supplied data item.
public ChatFlightCardElement(ChatFlightCardDataItem item)
The passenger and flight details displayed by this card.
Methods
Provides the localized, right-aligned heading displayed above each arrival detail.
protected virtual LightVisualElement CreateArrivalElement()
The arrival heading element.
Creates the passenger, route headings, total row, and their layout panels.
protected override void CreateChildElements()
Overrides:
Provides the localized heading displayed above each departure detail.
protected virtual LightVisualElement CreateDepartureElement()
The departure heading element.
Creates the right-aligned detail block shown at the arrival end of a flight row.
protected virtual FlightCardAirportInfo CreateFlightArrivalElement(string city, string airport, string date, string time)
The arrival city shown at the top of the block.
airportstringThe arrival airport shown below the city.
datestringThe arrival date formatted for display.
timestringThe arrival time formatted for display.
Returns:The arrival detail block, with all four text elements aligned to the right.
Creates the left-aligned detail block shown at the departure end of a flight row.
protected virtual FlightCardAirportInfo CreateFlightDepartureElement(string city, string airport, string date, string time)
The departure city shown at the top of the block.
airportstringThe departure airport shown below the city.
datestringThe departure date formatted for display.
timestringThe departure time formatted for display.
Returns:The departure detail block.
Provides the zoomed plane-image element placed between the departure and arrival details; its default maximum width is 90.
protected virtual LightVisualElement CreateFlightImageElement()
The image element used between departure and arrival details.
Provides the horizontal row that groups one flight's departure details, plane image, and arrival details.
protected virtual FlightStackLayoutPanel CreateFlightStackElement()
A panel tagged as a flight row for card synchronization.
Provides the element whose text is set from PassangerName during synchronization.
protected virtual LightVisualElement CreateNameElement()
The name element.
Provides the localized label placed immediately above the passenger-name element.
protected virtual LightVisualElement CreatePassengerElement()
The label element.
Provides the root vertical panel that groups the passenger details, route rows, and total section. Override this factory to change how those sections are arranged.
protected virtual StackLayoutPanel CreateStackElement()
The panel used to arrange the flight-card sections.
Provides the horizontal row that places the departure heading before the arrival heading.
protected virtual StackLayoutElement CreateTopHorizontalStackElement()
The route-heading panel.
Provides the localized label shown beside the total value.
protected virtual LightVisualElement CreateTotalElement()
The total label element.
Provides the horizontal row that places the total label and total value side by side.
protected virtual StackLayoutElement CreateTotalStackElement()
The total-section panel.
Provides the right-aligned element whose text is set from Total during synchronization.
protected virtual LightVisualElement CreateTotalSumElement()
The total value element.
Enables parent mouse-input notification for the flight card.
protected override void InitializeFields()
Overrides:
Updates the passenger and total labels and inserts route panels for the current flight segments. Flight timestamps use the current culture's short date and time patterns. Existing flight rows may remain when synchronization removes adjacent row panels because the removal loop advances after each removal.
protected override void Synchronise()
Overrides: