CloudUploadFile
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
Initializes a new instance of the CloudUploadFile class.
Properties
The cloud upload provider.
public ICloudUploadProvider Provider { get; set; }
A command that requests a cancel when executed.
public ICommand RequestCancelCommand { get; }
A command that raises the CloseRequested event.
public ICommand RequestCloseCommand { get; }
A command that starts the file upload.
public ICommand StartUploadCommand { get; }
The state of the upload.
public CloudUploadFileState State { get; }
The uploaded bytes count.
public long UploadedBytes { get; }
The result of the upload.
public object UploadResult { get; }
The validation errors.
public List<object> ValidationErrors { get; }
Methods
Requests a cancellation for the upload.
public void RequestCancel()
Raises the CloseRequested event.
public void RequestClose()
Starts the file upload.
public void StartUpload()
Events
Occurs when a close is requested.
public event EventHandler CloseRequested
Occurs when the upload progress changes.
public event EventHandler ProgressChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements:
Occurs when starting an upload is requested.
public event EventHandler<StartUploadRequestedEventArgs> StartUploadRequested
Occurs when the state changes.
public event EventHandler<CloudUploadFileStateChangedEventArgs> StateChanged