Class
PromptInputAttachedFile

Represents a file attachment displayed in the RadPromptInputElement attachments area. Provides properties for the file name, size, custom data, and a stream provider.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class PromptInputAttachedFile : INotifyPropertyChanged

Inheritance: objectPromptInputAttachedFile

Implements: INotifyPropertyChanged

Constructors

PromptInputAttachedFile()

Initializes a new instance of the PromptInputAttachedFile class.

Declaration

cs-api-definition
public PromptInputAttachedFile()

PromptInputAttachedFile(FileInfo)

Initializes a new instance of the PromptInputAttachedFile class with a FileInfo.

Declaration

cs-api-definition
public PromptInputAttachedFile(FileInfo file)

Parameters

file

FileInfo

Properties

Data

Gets or sets some custom information about the particular item.

Declaration

cs-api-definition
public object Data { get; set; }

Property Value

object

FileName

Gets or sets the short file name of the attachment that will be displayed in the message.

Declaration

cs-api-definition
public string FileName { get; set; }

Property Value

string

FileSize

Gets or sets the size of the attachment in bytes.

Declaration

cs-api-definition
public long FileSize { get; set; }

Property Value

long

GetFileStream

Gets or sets the func that provides a stream of the attachment.

Declaration

cs-api-definition
public Func<Stream> GetFileStream { get; set; }

Property Value

Func<Stream>

IsDownloading

Gets or sets a value indicating whether the file is currently being downloaded. Consumers can toggle this flag while running a download operation so that the attachment chip UI can reflect the in-progress state (e.g. show a spinner).

Declaration

cs-api-definition
public bool IsDownloading { get; set; }

Property Value

bool

Methods

OnPropertyChanged(string)

Raises the PropertyChanged event.

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged