A converter that received a long value for file size and returns is formatted.
Definition
Namespace:Telerik.Windows.Controls.FileDialogs
Assembly:Telerik.Windows.Controls.FileDialogs.dll
Syntax:
C#
public class RoundFileSizeConverter : IValueConverter
Inheritance: objectRoundFileSizeConverter
Implements:
Constructors
C#
public RoundFileSizeConverter()
Methods
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.
C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)