Class
ImageMessage

Represents message type that displays an image.

Definition

Namespace:Telerik.UI.Xaml.Controls.ConversationalUI

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class ImageMessage : MessageBase, IReportMessageResult, INotifyPropertyChanged, IInlineMessage

Inheritance: objectMessageBaseImageMessage

Implements: IInlineMessageINotifyPropertyChangedIReportMessageResult

Inherited Members MessageBase.SubscribeToMessageResult(Action<object, MessageResultEventArgs>)MessageBase.UnSubscribeToMessageResult()MessageBase.ValidateMessageDisplayPosition()MessageBase.OnPropertyChanged(string)MessageBase.ReportViewModelMessageBase.DisplayPositionMessageBase.MessageTypeMessageBase.AutoReportMessageBase.PostResultInlineMessageBase.CloseAfterReportMessageBase.ReportActionsMessageBase.AuthorMessageBase.CreationDateMessageBase.PropertyChanged

Constructors

ImageMessage(Author, ImageSource, DateTime)

Initializes a new instance of the ImageMessage class.

Declaration

cs-api-definition
public ImageMessage(Author author, ImageSource source, DateTime creationDate = default)

Parameters

author

Author

source

ImageSource

creationDate

DateTime

Properties

InlineViewModel

Gets the InlineViewModel.

Declaration

cs-api-definition
public InlineViewModel InlineViewModel { get; }

Property Value

InlineViewModel

Implements IInlineMessage.InlineViewModel

Size

Gets or sets the image size.

Declaration

cs-api-definition
public Size Size { get; set; }

Property Value

Size

Source

Gets or sets the source of the image.

Declaration

cs-api-definition
public ImageSource Source { get; set; }

Property Value

ImageSource

Stretch

Gets or sets the stretching behavior of the image.

Declaration

cs-api-definition
public Stretch Stretch { get; set; }

Property Value

Stretch