Class
ChatInputAreaAttachedFilesView

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:

cs-api-definition
public class ChatInputAreaAttachedFilesView : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewChatInputAreaAttachedFilesView

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView

Inherited Members RadBorderContentView.BackgroundColorPropertyRadBorderContentView.BackgroundPropertyRadBorderContentView.BorderColorPropertyRadBorderContentView.BorderBrushPropertyRadBorderContentView.BorderThicknessPropertyRadBorderContentView.CornerRadiusPropertyRadBorderContentView.ContentPaddingPropertyRadBorderContentView.BackgroundColorRadBorderContentView.BackgroundRadBorderContentView.BorderColorRadBorderContentView.BorderBrushRadBorderContentView.BorderThicknessRadBorderContentView.CornerRadiusRadBorderContentView.ContentPaddingRadCompositeContentView.StylePropertyRadCompositeContentView.ControlTemplatePropertyRadCompositeContentView.OnApplyTemplate()RadCompositeContentView.OnBindingContextChanged()RadCompositeContentView.OnPropertyChanged(string)RadCompositeContentView.StyleRadCompositeContentView.ControlTemplateRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnHandlerChanged()

Constructors

ChatInputAreaAttachedFilesView()

Initializes a new instance of the ChatInputAreaAttachedFilesView class.

Declaration

cs-api-definition
public ChatInputAreaAttachedFilesView()

Fields

AttachedFilesProperty

Identifies the AttachedFiles property.

Declaration

cs-api-definition
public static readonly BindableProperty AttachedFilesProperty

Field Value

BindableProperty

MaxItemWidthProperty

Identifies the MaxItemWidth property.

Declaration

cs-api-definition
public static readonly BindableProperty MaxItemWidthProperty

Field Value

BindableProperty

MinItemWidthProperty

Identifies the MinItemWidth property.

Declaration

cs-api-definition
public static readonly BindableProperty MinItemWidthProperty

Field Value

BindableProperty

NumberOfItemsPerRowProperty

Identifies the NumberOfItemsPerRow property.

Declaration

cs-api-definition
public static readonly BindableProperty NumberOfItemsPerRowProperty

Field Value

BindableProperty

RemoveAttachedFileCommandProperty

Identifies the RemoveAttachedFileCommand property.

Declaration

cs-api-definition
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

cs-api-definition
public ICollection<ChatAttachedFile> AttachedFiles { get; set; }

Property Value

ICollection<ChatAttachedFile>

MaxItemWidth

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

Declaration

cs-api-definition
public double MaxItemWidth { get; set; }

Property Value

double

MinItemWidth

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

Declaration

cs-api-definition
public double MinItemWidth { get; set; }

Property Value

double

NumberOfItemsPerRow

Declaration

cs-api-definition
public int NumberOfItemsPerRow { get; set; }

Property Value

int

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

cs-api-definition
public ICommand RemoveAttachedFileCommand { get; set; }

Property Value

ICommand