Class DoubleToMillisecondTimespanStringConverter
Converts a double in milliseconds to a TimeSpan string
Inheritance
System.Object
DoubleToMillisecondTimespanStringConverter
Implements
System.Windows.Data.IValueConverter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Screenshot
Assembly: Phoenix.Plugin.Screenshot.dll
Syntax
public class DoubleToMillisecondTimespanStringConverter : IValueConverter
Methods
View SourceConvert(Object, Type, Object, CultureInfo)
Converts a double in milliseconds to a TimeSpan string in a specified format.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The double. |
System.Type | targetType | The target Type (unused). |
System.Object | parameter | The string format. |
System.Globalization.CultureInfo | culture | The culture info (unused). |
Returns
Type | Description |
---|---|
System.Object | The TimeSpan string value value. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts a Timespan string from the format minutes : seconds to a double in seconds
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The timespan string. |
System.Type | targetType | The target Type (unused). |
System.Object | parameter | The parameter (unused) |
System.Globalization.CultureInfo | culture | The culture info. |
Returns
Type | Description |
---|---|
System.Object | Time in seconds. |
Implements
System.Windows.Data.IValueConverter