New to Telerik UI for WPFStart a free 30-day trial

A UI control for uploading files into the cloud.

Definition

Namespace:Telerik.Windows.Cloud.Controls

Assembly:Telerik.Windows.Cloud.Controls.dll

Syntax:

C#
[TelerikToolboxCategory("Cloud Upload")]
public class RadCloudUpload : Control

Inheritance: objectRadCloudUpload

Constructors

Initializes a new instance of the RadCloudUpload class.

C#
public RadCloudUpload()

Fields

ButtonsProperty

DependencyProperty

Identifies the Buttons dependency property.

C#
public static readonly DependencyProperty ButtonsProperty

InvalidItemsProperty

DependencyProperty

Identifies the InvalidItems dependency property.

C#
public static readonly DependencyProperty InvalidItemsProperty

ItemsProperty

DependencyProperty

Identifies the Items dependency property.

C#
public static readonly DependencyProperty ItemsProperty

ItemsSummaryProperty

DependencyProperty

Identifies the ItemsSummary dependency property.

C#
public static readonly DependencyProperty ItemsSummaryProperty

Identifies the MaximumSimultaneousUploadsCount dependency property.

C#
public static readonly DependencyProperty MaximumSimultaneousUploadsCountProperty

ProgressProperty

DependencyProperty

Identifies the Progress dependency property.

C#
public static readonly DependencyProperty ProgressProperty

ProviderProperty

DependencyProperty

Identifies the Provider dependency property.

C#
public static readonly DependencyProperty ProviderProperty

TotalSizeProperty

DependencyProperty

Identifies the TotalSize dependency property.

C#
public static readonly DependencyProperty TotalSizeProperty

ValidItemsProperty

DependencyProperty

Identifies the ValidItems dependency property.

C#
public static readonly DependencyProperty ValidItemsProperty

Properties

Gets or sets a value indicating whether the newly added files should be started automatically.

C#
public bool AutoStart { get; set; }

The buttons that should be displayed.

C#
public CloudUploadCommandButtons Buttons { get; set; }

Gets or sets a value indicating whether the AddFilesCommand is enabled while upload is in progress.

C#
public bool CanAddFilesWhileUploading { get; set; }

CreateOpenFileDialog

Func<OpenFileDialog>

Gets or sets a delegate that allows you to set up the .

C#
public Func<OpenFileDialog> CreateOpenFileDialog { get; set; }

The invalid items. These will not be uploaded.

C#
public IEnumerable<CloudUploadFile> InvalidItems { get; }

All items, valid and invalid.

C#
public IEnumerable<CloudUploadFile> Items { get; }

An object that contains information about the items.

C#
public CloudUploadItemsSummary ItemsSummary { get; }

The maximum number of running uploads.

C#
public int MaximumSimultaneousUploadsCount { get; set; }

The upload progress.

C#
public double Progress { get; }

The cloud storage provider.

C#
public ICloudUploadProvider Provider { get; set; }

The total size of the current upload session.

C#
public long TotalSize { get; }

ValidationRules

List<ValidationRule>

The validation rules.

C#
public List<ValidationRule> ValidationRules { get; }

The valid items. These will be uploaded.

C#
public IEnumerable<CloudUploadFile> ValidItems { get; }

Methods

Creates a new CloudUploadFile instance and adds it for uploading.

C#
public CloudUploadFile AddFile(string fileName, Stream fileStream, bool autoCloseStream)
Parameters:fileNamestring

The file name of the file to be added.

fileStreamStream

The file stream of the file to be added.

autoCloseStreambool

Indicating whether the stream should be auto closed.

Returns:

CloudUploadFile

The newly created CloudUploadFile instance.

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Requests a cancellation for all uploading items.

C#
public void RequestCancel()

Resets the theme.

C#
public void ResetTheme()

Events

Occurs when the file dialog is being opened.

C#
public event EventHandler<AddingFilesEventArgs> AddingFiles

Occurs when the state of an item changes.

C#
public event EventHandler<CloudUploadFileStateChangedEventArgs> ItemStateChanged