C# 클래스 ERP.StringFormatValueConverter

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 the value to a formatted string using the format specified in the constructor.

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

Not supported.

StringFormatValueConverter ( string formatString ) : System

Creates a new StringFormatValueConverter

메소드 상세

Convert() 공개 메소드

Converts the value to a formatted string using the format specified in the constructor.
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object The value to format.
targetType System.Type The target output type (ignored).
parameter object Optional parameter (ignored).
culture System The culture to use in the format operation.
리턴 object

ConvertBack() 공개 메소드

Not supported.
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object Ignored.
targetType System.Type Ignored.
parameter object Ignored.
culture System Ignored.
리턴 object

StringFormatValueConverter() 공개 메소드

Creates a new StringFormatValueConverter
public StringFormatValueConverter ( string formatString ) : System
formatString string Format string, it can take zero or one parameters, the first one being replaced by the source value
리턴 System