Weather Card
Weather card extends ImageCard by adding options to display weather data. The following set of properties is exposed for this purpose. They are all or of string type.
- Temperature
- Humidity
- Dew
- Pressure
- Wind
Controls / RadChat (Conversational UI) / Features / Messages / Cards
New to Telerik UI for WPF? Download free 30-day trial
Weather card extends ImageCard by adding options to display weather data. The following set of properties is exposed for this purpose. They are all or of string type.
WeatherCardMessage weatherCardMessage = new WeatherCardMessage(this.currentAuthor);
weatherCardMessage.ActionResultsOrientation = Orientation.Vertical;
weatherCardMessage.CardOrientation = CardOrientation.Portrait;
weatherCardMessage.Dew = "6° C";
weatherCardMessage.Humidity = "81 %";
weatherCardMessage.ImageSource = new BitmapImage(new Uri("/Images/London.png", UriKind.RelativeOrAbsolute));
weatherCardMessage.Pressure = "1008.00 mb";
weatherCardMessage.Temperature = "9 °C";
weatherCardMessage.Wind = "Wind: 0 mph from W";
weatherCardMessage.SubTitle = "Partly cloudy";
weatherCardMessage.Text = "Local Time: " + DateTime.Now.ToString("hh:mm tt");
weatherCardMessage.Title = "London, UK";
this.chat.AddMessage(weatherCardMessage);
Copyright © 2025 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.