ClassNamedToStringConverter
Class
A converter that converts an object to string using the DisplayName if the object is INamed or the ToString().
Definition
Namespace:Telerik.Windows.Controls.FieldList.Editing
Assembly:Telerik.Windows.Controls.PivotFieldList.dll
Syntax:
cs-api-definition
public class NamedToStringConverter : IValueConverter
Inheritance: objectNamedToStringConverter
Implements:
Constructors
NamedToStringConverter()
Declaration
cs-api-definition
public NamedToStringConverter()
Methods
Convert(object, Type, object, CultureInfo)
If the value implements INamed returns the DisplayName. Else returns the value ToString().
Declaration
cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The value.
targetType
The targetType - this parameter is ignored.
parameter
Converter parameter - this parameter is ignored.
culture
Culture - this parameter is ignored.
Returns
The DisplayName or the ToString representation of the value
ConvertBack(object, Type, object, CultureInfo)
method is not supported.
Declaration
cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
targetType
parameter
culture
Returns