Represents a view for displaying a collection of attached files in RadPromptInput. Displays the files that the user has attached in RadPromptInput area before sending the 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.PromptInput
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class PromptInputAttachedFilesView : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewPromptInputAttachedFilesView
Implements:
Inherited Members
Constructors
Initializes a new instance of the PromptInputAttachedFilesView class.
public PromptInputAttachedFilesView()
Fields
AttachedFilesProperty
BindableProperty
Identifies the AttachedFiles property.
public static readonly BindableProperty AttachedFilesProperty
MaxItemWidthProperty
BindableProperty
Identifies the MaxItemWidth property.
public static readonly BindableProperty MaxItemWidthProperty
MinItemWidthProperty
BindableProperty
Identifies the MinItemWidth property.
public static readonly BindableProperty MinItemWidthProperty
NumberOfItemsPerRowProperty
BindableProperty
Identifies the NumberOfItemsPerRow property.
public static readonly BindableProperty NumberOfItemsPerRowProperty
RemoveAttachedFileCommandProperty
BindableProperty
Identifies the RemoveAttachedFileCommand property.
public static readonly BindableProperty RemoveAttachedFileCommandProperty
Properties
Gets or sets a collection that contains the currently attached files that have not yet been sent.
public ICollection<PromptInputAttachedFile> AttachedFiles { get; set; }
Gets or sets the maximum width of an item presenting an attached file.
public double MaxItemWidth { get; set; }
Gets or sets the minimum width of an item presenting an attached file.
public double MinItemWidth { get; set; }
public int NumberOfItemsPerRow { get; set; }
Gets or sets the command that removes an attached file from the RadPromptInput, i.e. removes a file that was supposed to be uploaded but had not yet been sent.
public ICommand RemoveAttachedFileCommand { get; set; }