Class
RadCloudUpload

A UI control for uploading files into the cloud.

Definition

Namespace:Telerik.Windows.Cloud.Controls

Assembly:Telerik.Windows.Cloud.Controls.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Cloud Upload")]
public class RadCloudUpload : Control

Inheritance: objectRadCloudUpload

Constructors

RadCloudUpload()

Initializes a new instance of the RadCloudUpload class.

Declaration

cs-api-definition
public RadCloudUpload()

Fields

ButtonsProperty

Identifies the Buttons dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ButtonsProperty

Field Value

DependencyProperty

InvalidItemsProperty

Identifies the InvalidItems dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty InvalidItemsProperty

Field Value

DependencyProperty

ItemsProperty

Identifies the Items dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemsProperty

Field Value

DependencyProperty

ItemsSummaryProperty

Identifies the ItemsSummary dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemsSummaryProperty

Field Value

DependencyProperty

MaximumSimultaneousUploadsCountProperty

Identifies the MaximumSimultaneousUploadsCount dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaximumSimultaneousUploadsCountProperty

Field Value

DependencyProperty

ProgressProperty

Identifies the Progress dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ProgressProperty

Field Value

DependencyProperty

ProviderProperty

Identifies the Provider dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ProviderProperty

Field Value

DependencyProperty

TotalSizeProperty

Identifies the TotalSize dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TotalSizeProperty

Field Value

DependencyProperty

ValidItemsProperty

Identifies the ValidItems dependency property.

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public bool AutoStart { get; set; }

Property Value

bool

Buttons

The buttons that should be displayed.

Declaration

cs-api-definition
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

cs-api-definition
public bool CanAddFilesWhileUploading { get; set; }

Property Value

bool

CreateOpenFileDialog

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

Declaration

cs-api-definition
public Func<OpenFileDialog> CreateOpenFileDialog { get; set; }

Property Value

Func<OpenFileDialog>

InvalidItems

The invalid items. These will not be uploaded.

Declaration

cs-api-definition
public IEnumerable<CloudUploadFile> InvalidItems { get; }

Property Value

IEnumerable<CloudUploadFile>

Items

All items, valid and invalid.

Declaration

cs-api-definition
public IEnumerable<CloudUploadFile> Items { get; }

Property Value

IEnumerable<CloudUploadFile>

ItemsSummary

An object that contains information about the items.

Declaration

cs-api-definition
public CloudUploadItemsSummary ItemsSummary { get; }

Property Value

CloudUploadItemsSummary

MaximumSimultaneousUploadsCount

The maximum number of running uploads.

Declaration

cs-api-definition
public int MaximumSimultaneousUploadsCount { get; set; }

Property Value

int

Progress

The upload progress.

Declaration

cs-api-definition
public double Progress { get; }

Property Value

double

Provider

The cloud storage provider.

Declaration

cs-api-definition
public ICloudUploadProvider Provider { get; set; }

Property Value

ICloudUploadProvider

TotalSize

The total size of the current upload session.

Declaration

cs-api-definition
public long TotalSize { get; }

Property Value

long

ValidItems

The valid items. These will be uploaded.

Declaration

cs-api-definition
public IEnumerable<CloudUploadFile> ValidItems { get; }

Property Value

IEnumerable<CloudUploadFile>

ValidationRules

The validation rules.

Declaration

cs-api-definition
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

cs-api-definition
public CloudUploadFile AddFile(string fileName, Stream fileStream, bool autoCloseStream)

Parameters

fileName

string

The file name of the file to be added.

fileStream

Stream

The file stream of the file to be added.

autoCloseStream

bool

Indicating whether the stream should be auto closed.

Returns

CloudUploadFile

The newly created CloudUploadFile instance.

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

RequestCancel()

Requests a cancellation for all uploading items.

Declaration

cs-api-definition
public void RequestCancel()

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

Events

AddingFiles

Occurs when the file dialog is being opened.

Declaration

cs-api-definition
public event EventHandler<AddingFilesEventArgs> AddingFiles

Event Value

EventHandler<AddingFilesEventArgs>

ItemStateChanged

Occurs when the state of an item changes.

Declaration

cs-api-definition
public event EventHandler<CloudUploadFileStateChangedEventArgs> ItemStateChanged

Event Value

EventHandler<CloudUploadFileStateChangedEventArgs>