ClassCloudUploadFile
Class that contains logic for uploading a file, tracking upload progress and upload cancelation.
Definition
Namespace:Telerik.Windows.Cloud.Controls.Upload
Assembly:Telerik.Windows.Cloud.Controls.dll
Syntax:
public sealed class CloudUploadFile : INotifyPropertyChanged
Inheritance: objectCloudUploadFile
Implements:
Constructors
CloudUploadFile(string, Stream, List<object>)
Initializes a new instance of the CloudUploadFile class.
Properties
FileName
The short file name.
FileSize
The file size.
Provider
The cloud upload provider.
Declaration
public ICloudUploadProvider Provider { get; set; }
Property Value
RequestCancelCommand
A command that requests a cancel when executed.
RequestCloseCommand
A command that raises the CloseRequested event.
StartUploadCommand
A command that starts the file upload.
State
The state of the upload.
Declaration
public CloudUploadFileState State { get; }
Property Value
UploadResult
The result of the upload.
UploadedBytes
The uploaded bytes count.
ValidationErrors
The validation errors.
Methods
RequestCancel()
Requests a cancellation for the upload.
Declaration
public void RequestCancel()
RequestClose()
Raises the CloseRequested event.
Declaration
public void RequestClose()
Events
CloseRequested
Occurs when a close is requested.
ProgressChanged
Occurs when the upload progress changes.
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements
StartUploadRequested
Occurs when starting an upload is requested.
Declaration
public event EventHandler<StartUploadRequestedEventArgs> StartUploadRequested
Event Value
StateChanged
Occurs when the state changes.
Declaration
public event EventHandler<CloudUploadFileStateChangedEventArgs> StateChanged
Event Value