Show / Hide Table of Contents

Class MediaElementStateToOpposingPlayPauseStringConverter

Converts a MediaElementState to the opposing option of the media state between play or pause.

Inheritance
System.Object
MediaElementStateToOpposingPlayPauseStringConverter
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 MediaElementStateToOpposingPlayPauseStringConverter : IValueConverter

Methods

View Source

Convert(Object, Type, Object, CultureInfo)

Converts a MediaElementState to the opposing option of the media state between play or pause.

Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type Name Description
System.Object value

The MediaElementState

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 string 'Pause' if state is playing, 'Play' otherwise.

View Source

ConvertBack(Object, Type, Object, CultureInfo)

ConvertBack unused.

Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type Name Description
System.Object value

The value (unused).

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 double value.

Implements

System.Windows.Data.IValueConverter
  • View Source
In This Article
Back to top Generated by DocFX