Class RadUploadItem
Represents an item from the upload session. Used internally by RadUpload.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
[TelerikToolboxCategory("Input")]
public class RadUploadItem : ListBoxItem
Constructors
RadUploadItem()
Fields
DeleteButtonVisibilityProperty
Identifies the DeleteButtonVisibility dependency property.
Declaration
public static readonly DependencyProperty DeleteButtonVisibilityProperty
Field Value
System.Windows.DependencyProperty
|
DeleteCommandProperty
Identifies the DeleteCommand dependency property.
Declaration
public static readonly DependencyProperty DeleteCommandProperty
Field Value
System.Windows.DependencyProperty
|
DeleteEvent
Identifies the Delete routed event.
Declaration
public static readonly RoutedEvent DeleteEvent
Field Value
RoutedEvent
|
ErrorIconVisibilityProperty
Identifies the ErrorIconVisibility dependency property.
Declaration
public static readonly DependencyProperty ErrorIconVisibilityProperty
Field Value
System.Windows.DependencyProperty
|
ErrorMessageProperty
Identifies the ErrorMessage dependency property.
Declaration
public static readonly DependencyProperty ErrorMessageProperty
Field Value
System.Windows.DependencyProperty
|
FileNameProperty
Identifies the FileName dependency property.
Declaration
public static readonly DependencyProperty FileNameProperty
Field Value
System.Windows.DependencyProperty
|
FileSizeProperty
Identifies the FileSize dependency property.
Declaration
public static readonly DependencyProperty FileSizeProperty
Field Value
System.Windows.DependencyProperty
|
IsDeleteEnabledProperty
Identifies the IsDeleteEnabled dependency property.
Declaration
public static readonly DependencyProperty IsDeleteEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsFocusedProperty
Identifies the IsFocused dependency property.
Declaration
public static readonly DependencyProperty IsFocusedProperty
Field Value
System.Windows.DependencyProperty
|
MaximumProgressValueProperty
Identifies the MaximumProgressValue dependency property.
Declaration
public static readonly DependencyProperty MaximumProgressValueProperty
Field Value
System.Windows.DependencyProperty
|
Remarks
The expected value of this property is 100d.
PreviewDeleteEvent
Identifies the PreviewDelete routed event.
Declaration
public static readonly RoutedEvent PreviewDeleteEvent
Field Value
RoutedEvent
|
ProgressValueProperty
Identifies the ProgressValue dependency property.
Declaration
public static readonly DependencyProperty ProgressValueProperty
Field Value
System.Windows.DependencyProperty
|
SelectionVisibilityProperty
Identifies the SelectionVisibility property.
Declaration
public static readonly DependencyProperty SelectionVisibilityProperty
Field Value
System.Windows.DependencyProperty
|
UpdateCommandProperty
Identifies the UpdateCommand dependency property.
Declaration
public static readonly DependencyProperty UpdateCommandProperty
Field Value
System.Windows.DependencyProperty
|
ValidateEvent
Identifies the Validate routed event.
Declaration
public static readonly RoutedEvent ValidateEvent
Field Value
RoutedEvent
|
Properties
DeleteButtonVisibility
Gets the bool value indicating the visibility of the delete button. This is a dependency property.
Declaration
public Visibility DeleteButtonVisibility { get; set; }
Property Value
System.Windows.Visibility
|
DeleteCommand
Gets the bool value indicating the delete command. This is a dependency property.
Declaration
public DelegateCommand DeleteCommand { get; set; }
Property Value
DelegateCommand
|
ErrorIconVisibility
Gets the bool value indicating the visibility of the error icon. This is a dependency property.
Declaration
public Visibility ErrorIconVisibility { get; set; }
Property Value
System.Windows.Visibility
|
ErrorMessage
Gets the bool value indicating the error message. This is a dependency property.
Declaration
public string ErrorMessage { get; set; }
Property Value
System.String
|
FileName
Gets or sets the name of the file.
Declaration
public string FileName { get; set; }
Property Value
System.String
The name of the file. |
FileSize
Gets or sets the size of the file.
Declaration
public string FileSize { get; set; }
Property Value
System.String
The size of the file. |
IsDeleteEnabled
Gets or sets a value indicating whether this instance can be deleted.
Declaration
public bool IsDeleteEnabled { get; set; }
Property Value
System.Boolean
|
IsFocused
Gets the bool value indicating whether the control is focused or not. This is a dependency property.
Declaration
public bool IsFocused { get; }
Property Value
System.Boolean
|
MaximumProgressValue
Gets the bool value indicating the maximum progress value. This is a dependency property.
Declaration
public double MaximumProgressValue { get; set; }
Property Value
System.Double
|
ProgressValue
Gets the bool value indicating the value of the upload progress. This is a dependency property.
Declaration
public double ProgressValue { get; set; }
Property Value
System.Double
|
SelectionVisibility
Gets or sets a value indicating whether SelectionVisibility is enabled.
Declaration
public Visibility SelectionVisibility { get; set; }
Property Value
System.Windows.Visibility
|
Remarks
By default SelectionVisibility is disabled.
UpdateCommand
Gets the bool value indicating the update command. This is a dependency property.
Declaration
public DelegateCommand UpdateCommand { get; set; }
Property Value
DelegateCommand
|
Methods
add_Delete(DeleteEventHandler)
add_PreviewDelete(DeleteEventHandler)
Declaration
public void add_PreviewDelete(DeleteEventHandler value)
Parameters
DeleteEventHandler
value
|
add_Validate(UploadValidateEventHandler)
Declaration
public void add_Validate(UploadValidateEventHandler value)
Parameters
UploadValidateEventHandler
value
|
OnDelete(DeleteEventArgs)
Raised after deleting an item.
Declaration
protected virtual void OnDelete(DeleteEventArgs e)
Parameters
DeleteEventArgs
e
|
OnPreviewDelete(DeleteEventArgs)
Raised before deleting an item.
Declaration
protected virtual bool OnPreviewDelete(DeleteEventArgs e)
Parameters
DeleteEventArgs
e
|
Returns
System.Boolean
|
OnValidate(UploadValidateEventArgs)
Called to validate the RadUploadItem. The base implementation invokes the Validate event.
Declaration
protected virtual void OnValidate(UploadValidateEventArgs e)
Parameters
UploadValidateEventArgs
e
|
remove_Delete(DeleteEventHandler)
remove_PreviewDelete(DeleteEventHandler)
Declaration
public void remove_PreviewDelete(DeleteEventHandler value)
Parameters
DeleteEventHandler
value
|
remove_Validate(UploadValidateEventHandler)
Declaration
public void remove_Validate(UploadValidateEventHandler value)
Parameters
UploadValidateEventHandler
value
|
SetError(String)
Sets the error message.
Declaration
public void SetError(string message)
Parameters
System.String
message
The message. |
SetFileProgress(Double)
Sets the file progress.
Declaration
public void SetFileProgress(double fileProgress)
Parameters
System.Double
fileProgress
|
Events
Delete
Occurs when the item is deleted from the upload session.
Declaration
public event DeleteEventHandler Delete
Event Type
DeleteEventHandler
|
PreviewDelete
Occurs before the item is deleted from the upload session.
Declaration
public event DeleteEventHandler PreviewDelete
Event Type
DeleteEventHandler
|
Validate
Event raised before uploading starts to allow validation of the RadUploadItem.
Declaration
public event UploadValidateEventHandler Validate
Event Type
UploadValidateEventHandler
|