Show / Hide Table of Contents

Class DoubleToTimespanStringConverter

Converts a double to a TimeSpan string

Inheritance
System.Object
DoubleToTimespanStringConverter
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.DVR
Assembly: Phoenix.Plugin.DVR.dll
Syntax
public class DoubleToTimespanStringConverter : IValueConverter

Methods

View Source

Convert(Object, Type, Object, CultureInfo)

Converts a double in seconds to a TimeSpan string in the format minutes : seconds

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 parameter (unused)

System.Globalization.CultureInfo culture

The culture info (unused).

Returns
Type Description
System.Object

The TimeSpan string value value.

View Source

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
  • View Source
In This Article
Back to top Generated by DocFX