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
Показать файл Открыть проект

Открытые методы

Метод Описание
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