Class RadCloudUpload
A UI control for uploading files into the cloud.
Inheritance
Namespace: Telerik.Windows.Cloud.Controls
Assembly: Telerik.Windows.Cloud.Controls.dll
Syntax
[TelerikToolboxCategory("Cloud Upload")]
public class RadCloudUpload : Control, IThemable
Constructors
RadCloudUpload()
Fields
ButtonsProperty
Identifies the Buttons dependency property.
Declaration
public static readonly DependencyProperty ButtonsProperty
Field Value
System.
|
InvalidItemsProperty
Identifies the Invalid
Declaration
public static readonly DependencyProperty InvalidItemsProperty
Field Value
System.
|
ItemsProperty
Identifies the Items dependency property.
Declaration
public static readonly DependencyProperty ItemsProperty
Field Value
System.
|
ItemsSummaryProperty
Identifies the Items
Declaration
public static readonly DependencyProperty ItemsSummaryProperty
Field Value
System.
|
MaximumSimultaneousUploadsCountProperty
Identifies the Maximum
Declaration
public static readonly DependencyProperty MaximumSimultaneousUploadsCountProperty
Field Value
System.
|
ProgressProperty
Identifies the Progress dependency property.
Declaration
public static readonly DependencyProperty ProgressProperty
Field Value
System.
|
ProviderProperty
Identifies the Provider dependency property.
Declaration
public static readonly DependencyProperty ProviderProperty
Field Value
System.
|
TotalSizeProperty
Identifies the Total
Declaration
public static readonly DependencyProperty TotalSizeProperty
Field Value
System.
|
ValidItemsProperty
Identifies the Valid
Declaration
public static readonly DependencyProperty ValidItemsProperty
Field Value
System.
|
Properties
AutoStart
Gets or sets a value indicating whether the newly added files should be started automatically.
Declaration
public bool AutoStart { get; set; }
Property Value
System.
|
Buttons
The buttons that should be displayed.
Declaration
public CloudUploadCommandButtons Buttons { get; set; }
Property Value
CanAddFilesWhileUploading
Gets or sets a value indicating whether the AddFilesCommand is enabled while upload is in progress.
Declaration
public bool CanAddFilesWhileUploading { get; set; }
Property Value
System.
|
CreateOpenFileDialog
Gets or sets a delegate that allows you to set up the Microsoft.
Declaration
public Func<OpenFileDialog> CreateOpenFileDialog { get; set; }
Property Value
System.
|
InvalidItems
The invalid items. These will not be uploaded.
Declaration
public IEnumerable<CloudUploadFile> InvalidItems { get; }
Property Value
System.
|
Items
All items, valid and invalid.
Declaration
public IEnumerable<CloudUploadFile> Items { get; }
Property Value
System.
|
ItemsSummary
An object that contains information about the items.
Declaration
public CloudUploadItemsSummary ItemsSummary { get; }
Property Value
MaximumSimultaneousUploadsCount
The maximum number of running uploads.
Declaration
public int MaximumSimultaneousUploadsCount { get; set; }
Property Value
System.
|
Progress
The upload progress.
Declaration
public double Progress { get; }
Property Value
System.
|
Provider
The cloud storage provider.
Declaration
public ICloudUploadProvider Provider { get; set; }
Property Value
TotalSize
The total size of the current upload session.
Declaration
public long TotalSize { get; }
Property Value
System.
|
ValidationRules
The validation rules.
Declaration
public List<ValidationRule> ValidationRules { get; }
Property Value
System.
|
ValidItems
The valid items. These will be uploaded.
Declaration
public IEnumerable<CloudUploadFile> ValidItems { get; }
Property Value
System.
|
Methods
AddFile(String, Stream, Boolean)
Creates a new CloudUploadFile instance and adds it for uploading.
Declaration
public CloudUploadFile AddFile(string fileName, Stream fileStream, bool autoCloseStream)
Parameters
System. The file name of the file to be added. |
System. The file stream of the file to be added. |
System. Indicating whether the stream should be auto closed. |
Returns
Cloud The newly created CloudUploadFile instance. |
OnCreateAutomationPeer()
Returns class-specific System.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System. The type-specific System. |
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
RequestCancel()
Requests a cancellation for all uploading items.
Declaration
public void RequestCancel()
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()
Events
AddingFiles
Occurs when the file dialog is being opened.
Declaration
public event EventHandler<AddingFilesEventArgs> AddingFiles
Event Type
System.
|
ItemStateChanged
Occurs when the state of an item changes.
Declaration
public event EventHandler<CloudUploadFileStateChangedEventArgs> ItemStateChanged
Event Type
System.
|