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.Windows.DependencyProperty
|
InvalidItemsProperty
Identifies the InvalidItems dependency property.
Declaration
public static readonly DependencyProperty InvalidItemsProperty
Field Value
System.Windows.DependencyProperty
|
ItemsProperty
Identifies the Items dependency property.
Declaration
public static readonly DependencyProperty ItemsProperty
Field Value
System.Windows.DependencyProperty
|
ItemsSummaryProperty
Identifies the ItemsSummary dependency property.
Declaration
public static readonly DependencyProperty ItemsSummaryProperty
Field Value
System.Windows.DependencyProperty
|
MaximumSimultaneousUploadsCountProperty
Identifies the MaximumSimultaneousUploadsCount dependency property.
Declaration
public static readonly DependencyProperty MaximumSimultaneousUploadsCountProperty
Field Value
System.Windows.DependencyProperty
|
ProgressProperty
Identifies the Progress dependency property.
Declaration
public static readonly DependencyProperty ProgressProperty
Field Value
System.Windows.DependencyProperty
|
ProviderProperty
Identifies the Provider dependency property.
Declaration
public static readonly DependencyProperty ProviderProperty
Field Value
System.Windows.DependencyProperty
|
TotalSizeProperty
Identifies the TotalSize dependency property.
Declaration
public static readonly DependencyProperty TotalSizeProperty
Field Value
System.Windows.DependencyProperty
|
ValidItemsProperty
Identifies the ValidItems dependency property.
Declaration
public static readonly DependencyProperty ValidItemsProperty
Field Value
System.Windows.DependencyProperty
|
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.Boolean
|
Buttons
The buttons that should be displayed.
Declaration
public CloudUploadCommandButtons Buttons { get; set; }
Property Value
CloudUploadCommandButtons
|
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.Boolean
|
CreateOpenFileDialog
Gets or sets a delegate that allows you to set up the Microsoft.Win32.OpenFileDialog.
Declaration
public Func<OpenFileDialog> CreateOpenFileDialog { get; set; }
Property Value
System.Func<Microsoft.Win32.OpenFileDialog>
|
InvalidItems
The invalid items. These will not be uploaded.
Declaration
public IEnumerable<CloudUploadFile> InvalidItems { get; }
Property Value
System.Collections.Generic.IEnumerable<CloudUploadFile>
|
Items
All items, valid and invalid.
Declaration
public IEnumerable<CloudUploadFile> Items { get; }
Property Value
System.Collections.Generic.IEnumerable<CloudUploadFile>
|
ItemsSummary
An object that contains information about the items.
Declaration
public CloudUploadItemsSummary ItemsSummary { get; }
Property Value
CloudUploadItemsSummary
|
MaximumSimultaneousUploadsCount
The maximum number of running uploads.
Declaration
public int MaximumSimultaneousUploadsCount { get; set; }
Property Value
System.Int32
|
Progress
The upload progress.
Declaration
public double Progress { get; }
Property Value
System.Double
|
Provider
The cloud storage provider.
Declaration
public ICloudUploadProvider Provider { get; set; }
Property Value
ICloudUploadProvider
|
TotalSize
The total size of the current upload session.
Declaration
public long TotalSize { get; }
Property Value
System.Int64
|
ValidationRules
The validation rules.
Declaration
public List<ValidationRule> ValidationRules { get; }
Property Value
System.Collections.Generic.List<System.Windows.Controls.ValidationRule>
|
ValidItems
The valid items. These will be uploaded.
Declaration
public IEnumerable<CloudUploadFile> ValidItems { get; }
Property Value
System.Collections.Generic.IEnumerable<CloudUploadFile>
|
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.String
fileName
The file name of the file to be added. |
System.IO.Stream
fileStream
The file stream of the file to be added. |
System.Boolean
autoCloseStream
Indicating whether the stream should be auto closed. |
Returns
CloudUploadFile
The newly created CloudUploadFile instance. |
OnCreateAutomationPeer()
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
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.EventHandler<AddingFilesEventArgs>
|
ItemStateChanged
Occurs when the state of an item changes.
Declaration
public event EventHandler<CloudUploadFileStateChangedEventArgs> ItemStateChanged
Event Type
System.EventHandler<CloudUploadFileStateChangedEventArgs>
|