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

Stores the city, image, temperature, and additional text rows displayed by a weather card.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ChatWeatherCardDataItem : BaseChatCardDataItem, INotifyPropertyChanged

Inheritance: objectBaseChatCardDataItemChatWeatherCardDataItem

Implements: INotifyPropertyChanged

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

Constructors

Initializes weather-card content and application-defined user data.

C#
public ChatWeatherCardDataItem(string city, Image image, string temperature, object userData, params string[] data)
Parameters:citystring

The city name displayed by the card.

imageImage

The weather image displayed by the card.

temperaturestring

The temperature text displayed by the card.

userDataobject

Application-defined data associated with the card.

datastring[]

Additional text rows displayed below the weather details.

Initializes weather-card content without application-defined user data.

C#
public ChatWeatherCardDataItem(string city, Image image, string temperature, params string[] data)
Parameters:citystring

The city name displayed by the card.

imageImage

The weather image displayed by the card.

temperaturestring

The temperature text displayed by the card.

datastring[]

Additional text rows displayed below the weather details.

Properties

Gets or sets the city name displayed by the card.

C#
public string City { get; set; }

Gets or sets the additional text rows displayed below the weather details.

C#
public string[] Data { get; set; }

Gets or sets the weather image displayed by the card.

C#
public Image Image { get; set; }

Gets or sets the temperature text displayed by the card.

C#
public string Temperature { get; set; }