RadCloudUpload
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
Initializes a new instance of the RadCloudUpload class.
public RadCloudUpload()
Fields
ButtonsProperty
DependencyProperty
Identifies the Buttons dependency property.
public static readonly DependencyProperty ButtonsProperty
InvalidItemsProperty
DependencyProperty
Identifies the InvalidItems dependency property.
public static readonly DependencyProperty InvalidItemsProperty
ItemsProperty
DependencyProperty
Identifies the Items dependency property.
public static readonly DependencyProperty ItemsProperty
ItemsSummaryProperty
DependencyProperty
Identifies the ItemsSummary dependency property.
public static readonly DependencyProperty ItemsSummaryProperty
MaximumSimultaneousUploadsCountProperty
DependencyProperty
Identifies the MaximumSimultaneousUploadsCount dependency property.
public static readonly DependencyProperty MaximumSimultaneousUploadsCountProperty
ProgressProperty
DependencyProperty
Identifies the Progress dependency property.
public static readonly DependencyProperty ProgressProperty
ProviderProperty
DependencyProperty
Identifies the Provider dependency property.
public static readonly DependencyProperty ProviderProperty
TotalSizeProperty
DependencyProperty
Identifies the TotalSize dependency property.
public static readonly DependencyProperty TotalSizeProperty
ValidItemsProperty
DependencyProperty
Identifies the ValidItems dependency property.
public static readonly DependencyProperty ValidItemsProperty
Properties
Gets or sets a value indicating whether the newly added files should be started automatically.
public bool AutoStart { get; set; }
The buttons that should be displayed.
public CloudUploadCommandButtons Buttons { get; set; }
Gets or sets a value indicating whether the AddFilesCommand is enabled while upload is in progress.
public bool CanAddFilesWhileUploading { get; set; }
CreateOpenFileDialog
Func<OpenFileDialog>
Gets or sets a delegate that allows you to set up the .
public Func<OpenFileDialog> CreateOpenFileDialog { get; set; }
The invalid items. These will not be uploaded.
public IEnumerable<CloudUploadFile> InvalidItems { get; }
All items, valid and invalid.
public IEnumerable<CloudUploadFile> Items { get; }
An object that contains information about the items.
public CloudUploadItemsSummary ItemsSummary { get; }
The maximum number of running uploads.
public int MaximumSimultaneousUploadsCount { get; set; }
The cloud storage provider.
public ICloudUploadProvider Provider { get; set; }
ValidationRules
List<ValidationRule>
The validation rules.
public List<ValidationRule> ValidationRules { get; }
The valid items. These will be uploaded.
public IEnumerable<CloudUploadFile> ValidItems { get; }
Methods
Creates a new CloudUploadFile instance and adds it for uploading.
public CloudUploadFile AddFile(string fileName, Stream fileStream, bool autoCloseStream)
The file name of the file to be added.
fileStreamStreamThe file stream of the file to be added.
autoCloseStreamboolIndicating whether the stream should be auto closed.
Returns:The newly created CloudUploadFile instance.
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Requests a cancellation for all uploading items.
public void RequestCancel()
Resets the theme.
public void ResetTheme()
Events
Occurs when the file dialog is being opened.
public event EventHandler<AddingFilesEventArgs> AddingFiles
Occurs when the state of an item changes.
public event EventHandler<CloudUploadFileStateChangedEventArgs> ItemStateChanged