C# Класс RaumfeldNET.WPFControls.MathConverter

Value converter that performs arithmetic calculations over its argument(s)
MathConverter can act as a value converter, or as a multivalue converter (WPF only). It is also a markup extension (WPF only) which allows to avoid declaring resources, ConverterParameter must contain an arithmetic expression over converter arguments. Operations supported are +, -, * and / Single argument of a value converter may referred as x, a, or {0} Arguments of multi value converter may be referred as x,y,z,t (first-fourth argument), or a,b,c,d, or {0}, {1}, {2}, {3}, {4}, ... The converter supports arithmetic expressions of arbitrary complexity, including nested subexpressions
Наследование: System.Windows.Markup.MarkupExtension, IMultiValueConverter, IValueConverter
Показать файл Открыть проект

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

Метод Описание
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
ConvertBack ( object value, Type targetTypes, object parameter, CultureInfo culture ) : object[]
ProvideValue ( IServiceProvider serviceProvider ) : object

Защищенные методы

Метод Описание
ProcessException ( Exception ex ) : void

Приватные методы

Метод Описание
Parse ( string s ) : IExpression

Описание методов

Convert() публичный Метод

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
Результат object

ConvertBack() публичный Метод

public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
Результат object

ConvertBack() публичный Метод

public ConvertBack ( object value, Type targetTypes, object parameter, CultureInfo culture ) : object[]
value object
targetTypes System.Type
parameter object
culture System.Globalization.CultureInfo
Результат object[]

ProcessException() защищенный Метод

protected ProcessException ( Exception ex ) : void
ex System.Exception
Результат void

ProvideValue() публичный Метод

public ProvideValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider
Результат object