MathConverter Class

Summary

MathConverter provides a value converter which can be used for math operations. It can be used for normal binding or multi binding as well. If it is used for normal binding the given parameter will be used as operands with the selected operation. If it is used for multi binding then the first and second binding will be used as operands with the selected operation. This class cannot be inherited.
Namespace
MahApps.Metro.Converters
Interfaces
  • IMultiValueConverter
Base Types
  • IValueConverter
graph BT Type-->Base0["IValueConverter"] Type-.->Interface0["IMultiValueConverter"] Type["MathConverter"] class Type type-node

Syntax

[ValueConversion(typeof(object), typeof(object))]
public sealed class MathConverter : IValueConverter, IMultiValueConverter

Attributes

Type Description
ValueConversion

Properties

Name Value Summary
Operation MathOperation

Methods