ClassRadCloudUpload
A UI control for uploading files into the cloud.
Definition
Namespace:Telerik.Windows.Cloud.Controls
Assembly:Telerik.Windows.Cloud.Controls.dll
Syntax:
[TelerikToolboxCategory("Cloud Upload")]
public class RadCloudUpload : Control
Inheritance: objectRadCloudUpload
Constructors
RadCloudUpload()
Initializes a new instance of the RadCloudUpload class.
Declaration
public RadCloudUpload()
Fields
ButtonsProperty
Identifies the Buttons dependency property.
Declaration
public static readonly DependencyProperty ButtonsProperty
Field Value
DependencyProperty
InvalidItemsProperty
Identifies the InvalidItems dependency property.
Declaration
public static readonly DependencyProperty InvalidItemsProperty
Field Value
DependencyProperty
ItemsProperty
Identifies the Items dependency property.
Declaration
public static readonly DependencyProperty ItemsProperty
Field Value
DependencyProperty
ItemsSummaryProperty
Identifies the ItemsSummary dependency property.
Declaration
public static readonly DependencyProperty ItemsSummaryProperty
Field Value
DependencyProperty
MaximumSimultaneousUploadsCountProperty
Identifies the MaximumSimultaneousUploadsCount dependency property.
Declaration
public static readonly DependencyProperty MaximumSimultaneousUploadsCountProperty
Field Value
DependencyProperty
ProgressProperty
Identifies the Progress dependency property.
Declaration
public static readonly DependencyProperty ProgressProperty
Field Value
DependencyProperty
ProviderProperty
Identifies the Provider dependency property.
Declaration
public static readonly DependencyProperty ProviderProperty
Field Value
DependencyProperty
TotalSizeProperty
Identifies the TotalSize dependency property.
Declaration
public static readonly DependencyProperty TotalSizeProperty
Field Value
DependencyProperty
ValidItemsProperty
Identifies the ValidItems dependency property.
Declaration
public static readonly DependencyProperty ValidItemsProperty
Field Value
DependencyProperty
Properties
AutoStart
Gets or sets a value indicating whether the newly added files should be started automatically.
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
CreateOpenFileDialog
Gets or sets a delegate that allows you to set up the .
Declaration
public Func<OpenFileDialog> CreateOpenFileDialog { get; set; }
Property Value
Func<OpenFileDialog>
InvalidItems
The invalid items. These will not be uploaded.
Declaration
public IEnumerable<CloudUploadFile> InvalidItems { get; }
Property Value
Items
All items, valid and invalid.
Declaration
public IEnumerable<CloudUploadFile> Items { get; }
Property Value
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
Progress
The upload progress.
Provider
The cloud storage provider.
Declaration
public ICloudUploadProvider Provider { get; set; }
Property Value
TotalSize
The total size of the current upload session.
ValidItems
The valid items. These will be uploaded.
Declaration
public IEnumerable<CloudUploadFile> ValidItems { get; }
Property Value
ValidationRules
The validation rules.
Declaration
public List<ValidationRule> ValidationRules { get; }
Property Value
List<ValidationRule>
Methods
AddFile(string, Stream, bool)
Creates a new CloudUploadFile instance and adds it for uploading.
Declaration
public CloudUploadFile AddFile(string fileName, Stream fileStream, bool autoCloseStream)
Parameters
fileName
The file name of the file to be added.
fileStream
The file stream of the file to be added.
autoCloseStream
Indicating whether the stream should be auto closed.
Returns
The newly created CloudUploadFile instance.
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
RequestCancel()
Requests a cancellation for all uploading items.
Declaration
public void RequestCancel()
Events
AddingFiles
Occurs when the file dialog is being opened.
Declaration
public event EventHandler<AddingFilesEventArgs> AddingFiles
Event Value
ItemStateChanged
Occurs when the state of an item changes.
Declaration
public event EventHandler<CloudUploadFileStateChangedEventArgs> ItemStateChanged
Event Value