Show / Hide Table of Contents

Class ValidationSeverityToVisibilityConverter

Convert ValidationSeverity to visibility.

Inheritance
System.Object
ValidationSeverityToVisibilityConverter
Implements
System.Windows.Data.IValueConverter
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: Sartorius.SAF.Presentation.Converter
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class ValidationSeverityToVisibilityConverter : IValueConverter

Methods

View Source

Convert(Object, Type, Object, CultureInfo)

Convert ValidationSeverity to visibility.

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

ValidationSeverity value.

System.Type targetType
System.Object parameter

Defined default value : 0 or 1 or 2.

System.Globalization.CultureInfo culture

The current culture.

Returns
Type Description
System.Object

A visible or collapsed.

View Source

ConvertBack(Object, Type, Object, CultureInfo)

Convert back a value. Called when moving a value from target to source. This should implement the inverse of Convert.

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

value, as produced by target

System.Type targetType

target type

System.Object parameter

converter parameter

System.Globalization.CultureInfo culture

culture information

Returns
Type Description
System.Object

Converted back value.

Binding.DoNothing may be returned to indicate that no value should be set on the source property.

System.Windows.DependencyProperty.UnsetValue may be returned to indicate that the converter is unable to provide a value for the source property, and no value will be set to it.

Remarks

The data binding engine does not catch exceptions thrown by a user-supplied converter. Thus any exception thrown by ConvertBack, or thrown by methods it calls and not caught by the ConvertBack, will be treated as a runtime error (i.e. a crash). ConvertBack should handle anticipated problems by returning DependencyProperty.UnsetValue.

Implements

System.Windows.Data.IValueConverter

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX