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:
C#
public class NamedToStringConverter : IValueConverter
Inheritance: objectNamedToStringConverter
Implements:
Constructors
C#
public NamedToStringConverter()
Methods
If the value implements INamed returns the DisplayName. Else returns the value ToString().
C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value.
targetTypeTypeThe targetType - this parameter is ignored.
parameterobjectConverter parameter - this parameter is ignored.
cultureCultureInfoCulture - this parameter is ignored.
Returns:The DisplayName or the ToString representation of the value
method is not supported.
C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)