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

Carousel Message

Updated on Sep 29, 2026

The CarouselMessage utilizes the RadCarousel component for displaying its data. Its constructor accepts the following parameters.

  • MessageDisplayPosition displayPosition
  • Author author
  • IEnumerable source
  • DateTime creationDate

For the purpose of this example a sample collection of ImageCards will be defined.

Defining a CarouselMessage

C#
List<ImageCardMessage> imageCards = new List<ImageCardMessage>();

ImageCardMessage imageCardMessagePlane = new ImageCardMessage(this.currentAuthor);
imageCardMessagePlane.ImageSource = new BitmapImage(new Uri("/Images/Filhas.png", UriKind.RelativeOrAbsolute));
imageCardMessagePlane.Title = "Filhas";
imageCardMessagePlane.CardOrientation = CardOrientation.Portrait;
imageCardMessagePlane.ImageDisplayMode = ImageDisplayMode.Stretch;

imageCards.Add(imageCardMessagePlane);

ImageCardMessage imageCardMessageShip = new ImageCardMessage(this.currentAuthor);
imageCardMessageShip.ImageSource = new BitmapImage(new Uri("/Images/Casadapaz.png", UriKind.RelativeOrAbsolute));
imageCardMessageShip.Title = "Casadapaz";
imageCardMessageShip.CardOrientation = CardOrientation.Portrait;
imageCardMessageShip.ImageDisplayMode = ImageDisplayMode.Stretch;

imageCards.Add(imageCardMessageShip);

ImageCardMessage imageCardMessageTrain = new ImageCardMessage(this.currentAuthor);
imageCardMessageTrain.ImageSource = new BitmapImage(new Uri("/Images/Hotelresidential.png", UriKind.RelativeOrAbsolute));
imageCardMessageTrain.Title = "Hotelresidential";
imageCardMessageTrain.CardOrientation = CardOrientation.Portrait;
imageCardMessageTrain.ImageDisplayMode = ImageDisplayMode.Stretch;

imageCards.Add(imageCardMessageTrain);

CarouselMessage carouselMessage = new CarouselMessage(MessageDisplayPosition.Overlay, this.currentAuthor, imageCards);

this.chat.AddMessage(carouselMessage);

Defining CarouselMessage Defining CalendarMessage

See Also

In this article
See Also
Not finding the help you need?
Contact Support