New to Telerik UI for .NET MAUIStart a free 30-day trial

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

Constructors

Initializes a new instance of the PromptInputAttachedFilesView class.

C#
public PromptInputAttachedFilesView()

Fields

AttachedFilesProperty

BindableProperty

Identifies the AttachedFiles property.

C#
public static readonly BindableProperty AttachedFilesProperty

MaxItemWidthProperty

BindableProperty

Identifies the MaxItemWidth property.

C#
public static readonly BindableProperty MaxItemWidthProperty

MinItemWidthProperty

BindableProperty

Identifies the MinItemWidth property.

C#
public static readonly BindableProperty MinItemWidthProperty

Identifies the NumberOfItemsPerRow property.

C#
public static readonly BindableProperty NumberOfItemsPerRowProperty

Identifies the RemoveAttachedFileCommand property.

C#
public static readonly BindableProperty RemoveAttachedFileCommandProperty

Properties

Gets or sets a collection that contains the currently attached files that have not yet been sent.

C#
public ICollection<PromptInputAttachedFile> AttachedFiles { get; set; }

Gets or sets the maximum width of an item presenting an attached file.

C#
public double MaxItemWidth { get; set; }

Gets or sets the minimum width of an item presenting an attached file.

C#
public double MinItemWidth { get; set; }
C#
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.

C#
public ICommand RemoveAttachedFileCommand { get; set; }