New to Telerik UI for WinUI? Start a free 30-day trial
Image Message
Updated on Mar 26, 2026
The usage of the ImageMessage is similar to the one of the GifMessage. The difference is that instead of passing a Uri source, the constructor accepts an Image source.
Defining an ImageMessage
C#
ImageSource imageSource = new BitmapImage(new Uri("ms-appx:///MyImage.png", UriKind.Absolute));
ImageMessage imageMessage = new ImageMessage(this.currentAuthor, imageSource);
this.chat.AddMessage(imageMessage);
RadChat with an ImageMessage

Furthermore, the ImageMessage supports setting Stretch and Size for its image.
Setting the Stretch and Size of the message
C#
ImageSource imageSource = new BitmapImage(new Uri("ms-appx:///MyImage.png", UriKind. Absolute));
ImageMessage imageMessage = new ImageMessage(this.currentAuthor, imageSource);
imageMessage.Stretch = Stretch.UniformToFill;
imageMessage.Size = new Windows.Foundation.Size(150, 100);
this.chat.AddMessage(imageMessage);
ImageMessage with Stretch and Size
