In This Article

DoubleMinimumConverter Class

Represents a value converter that returns the minimum of the values that are passed to the converter.

[ValueConversion(typeof(double), typeof(double))]
public class DoubleMinimumConverter : DependencyObject, IValueConverter
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject Object

Constructors

DoubleMinimumConverter()

public DoubleMinimumConverter()

Properties

ValueCount

Gets or sets the number of values used to calculate the minimum. This is a dependency property.

public int ValueCount { get; set; }

Property Value

System.Int32:

The number of values to use to calculate the minimum, or -1 for no limit.

Methods

Convert(Object, Type, Object, CultureInfo)

Converts the specified value to the minimum value based on the previous values converted.

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

The value produced by the binding source.

targetType System.Type

The type of the binding target property.

parameter System.Object

The converter parameter to use.

culture System.Globalization.CultureInfo

The culture to use in the converter.

Returns

System.Object:

The minimum value of the specified value and previous values.

ConvertBack(Object, Type, Object, CultureInfo)

This method always throws a System.NotImplementedException exception and should not be used.

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

Not used.

targetType System.Type

Not used.

parameter System.Object

Not used.

culture System.Globalization.CultureInfo

Not used.

Returns

System.Object

Fields

ValueCountProperty

Identifies the ValueCount dependency property. This field is read-only.

public static readonly DependencyProperty ValueCountProperty

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()