C# 클래스 ERP.TargetNullValueConverter

Two way IValueConverter that lets you bind a property on a bindable object that can be an empty string value to a dependency property that should be set to null in that case
상속: IValueConverter
파일 보기 프로젝트 열기: arthurgfonseca/ERP-Grupo5

공개 메소드들

메소드 설명
Convert ( object value, Type targetType, object parameter, System culture ) : object

Converts null or empty strings to null.

ConvertBack ( object value, Type targetType, object parameter, System culture ) : object

Converts null back to String.Empty.

메소드 상세

Convert() 공개 메소드

Converts null or empty strings to null.
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object The value to convert.
targetType System.Type The expected type of the result (ignored).
parameter object Optional parameter (ignored).
culture System The culture for the conversion (ignored).
리턴 object

ConvertBack() 공개 메소드

Converts null back to String.Empty.
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object The value to convert.
targetType System.Type The expected type of the result (ignored).
parameter object Optional parameter (ignored).
culture System The culture for the conversion (ignored).
리턴 object