# Image Card

**ImageCard** extends the **CardMessage** by adding the option an **Image** to be displayed.

**Defining an ImageCard**

```C#
ImageCardMessage imageCardMessage = new ImageCardMessage(this.currentAuthor);
imageCardMessage.ImageSource = new BitmapImage(new Uri("/Images/PeterJohnson.jpg", UriKind.RelativeOrAbsolute));
imageCardMessage.Title = "Peter Johnson";
imageCardMessage.SubTitle = "Senior Front-end Developer";
imageCardMessage.Text = "Peter has an experience of 5 years as a front-end developer.";

this.chat.AddMessage(imageCardMessage);
```

> caption Defining ImageCard

![Defining ImageCard](https://www.telerik.com/products/wpf/documentation/assets/433c9d2a5b6767952955846f690543fe/radchat_imagecard_01.png)

## Card Orientation

**RadChat** exposes the **CardOrientation** property for controlling its orientation. It is an enumeration that has the following two values:

* **Portrait**
* **Landscape**

The default value is **Portrait**. When set to **Landscape** the previously defined **ImageCard** will be visualized as shown below.

> caption Defining ImageCard with landscape CardOrientation

![Defining ImageCard](https://www.telerik.com/products/wpf/documentation/assets/9f8e631d9a93df591ca3dbf7c8b114bf/radchat_imagecard_02.png)

## Display Mode

The display mode of the Image of **ImageCard** can be manipulated through the **ImageDisplayMode** enumeration. It has two value which are listed below.

* **Stretch**
* **Thumbnail**

By default, the property will be set to **Stretch**. Setting it to **Thumbnail** will have the following output.

> caption Defining ImageCard with thumbnail ImageDisplayMode

![Defining ImageCard](https://www.telerik.com/products/wpf/documentation/assets/ebbcbe3306400d0842812f298ac28fe5/radchat_imagecard_03.png)

## See Also

* [Messages Overview](https://www.telerik.com/products/wpf/documentation/controls/radchat/messages/overview)
