Navigation :
FormattingConverter
Name |
Value |
Assembly |
Catel.MVVM |
Namespace |
Catel.MVVM.Converters |
Available on |
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS |
public class FormattingConverter : ValueConverterBase
Base types
ValueConverterBase
Converter for formatting values.
Fields
Constructors
Initializes a new instance of the FormattingConverter class.
Initializes a new instance of the FormattingConverter class.
Parameters
Name |
Description |
defaultFormatString |
A default format string. |
Methods
Convert(object value, Type targetType, object parameter)
Modifies the source data before passing it to the target for display in the UI.
Parameters
Name |
Description |
value |
The source data being passed to the target. |
targetType |
The Type of data expected by the target dependency property. |
parameter |
An optional parameter to be used in the converter logic. |
Returns
The value to be passed to the target dependency property.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion