Class ImageMessage
Represents a class which specifies an image type message in SfChat.
Inherited Members
Namespace: Syncfusion.Maui.Chat
Assembly: Syncfusion.Maui.Chat.dll
Syntax
public class ImageMessage : TextMessage, IImageMessage, ITextMessage, IMessage
Constructors
ImageMessage()
Initializes a new instance of the ImageMessage class.
Declaration
public ImageMessage()
Fields
AspectProperty
Identifies the Aspect Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty AspectProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
SizeProperty
Identifies the Size Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty SizeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
SourceProperty
Identifies the Source Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty SourceProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
Aspect
Gets or sets the scaling mode of an image.
Declaration
public Aspect Aspect { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Aspect |
Size
Gets or sets the size of an image message.
Declaration
public Size Size { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Graphics.Size |
Remarks
The maximum width of an image message is restricted to 80% of the chat control's width to ensure consistent UI among messages.
Source
Gets or sets the source of an image.
Declaration
public ImageSource Source { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.ImageSource |