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