ClassChatInputAreaAttachedFilesView
Represents a view for displaying a collection of attached files in the chat input area. Displays the files that the user has attached in the chat input area before sending a message. This view arranges the attached files in a grid layout, allowing customization of the number of items per row, as well as the minimum and maximum width of each item. It also provides a command for removing attached files. The view automatically recalculates the optimal number of items per row based on its width and the specified item width constraints, unless a custom value is set.
Definition
Namespace:Telerik.Maui.Controls.Chat
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class ChatInputAreaAttachedFilesView : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewChatInputAreaAttachedFilesView
Implements:
Inherited Members
Constructors
ChatInputAreaAttachedFilesView()
Initializes a new instance of the ChatInputAreaAttachedFilesView class.
Declaration
public ChatInputAreaAttachedFilesView()
Fields
AttachedFilesProperty
Identifies the AttachedFiles property.
Declaration
public static readonly BindableProperty AttachedFilesProperty
Field Value
BindableProperty
MaxItemWidthProperty
Identifies the MaxItemWidth property.
Declaration
public static readonly BindableProperty MaxItemWidthProperty
Field Value
BindableProperty
MinItemWidthProperty
Identifies the MinItemWidth property.
Declaration
public static readonly BindableProperty MinItemWidthProperty
Field Value
BindableProperty
NumberOfItemsPerRowProperty
Identifies the NumberOfItemsPerRow property.
Declaration
public static readonly BindableProperty NumberOfItemsPerRowProperty
Field Value
BindableProperty
RemoveAttachedFileCommandProperty
Identifies the RemoveAttachedFileCommand property.
Declaration
public static readonly BindableProperty RemoveAttachedFileCommandProperty
Field Value
BindableProperty
Properties
AttachedFiles
Gets or sets a collection that contains the currently attached files that have not yet been sent.
Declaration
public ICollection<ChatAttachedFile> AttachedFiles { get; set; }
Property Value
MaxItemWidth
Gets or sets the maximum width of an item presenting an attached file.
MinItemWidth
Gets or sets the minimum width of an item presenting an attached file.
RemoveAttachedFileCommand
Gets or sets the command that removes an attached file from the ChatInputArea, i.e. removes a file that was supposed to be uploaded but had not yet been sent.
Declaration
public ICommand RemoveAttachedFileCommand { get; set; }
Property Value