Class RoundFileSizeConverter
A converter that received a long value for file size and returns is formatted.
Inheritance
Namespace: Telerik.Windows.Controls.FileDialogs
Assembly: Telerik.Windows.Controls.FileDialogs.dll
Syntax
public class RoundFileSizeConverter : Object, IValueConverter
Constructors
RoundFileSizeConverter()
Declaration
public RoundFileSizeConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a file size value (long) to a string with value (number) (modifier) where 1<number<1024 and modifier is bytes/KB/MB/GB/TB. Parameter can be set to "KB" and the method would return the value converted only to KB.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|
ConvertBack(Object, Type, Object, CultureInfo)
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|