1
// Copyright © Microsoft Corporation.
2
// This source is subject to the Microsoft Source License for Silverlight Controls (March 2008 Release).
3
// Please see http://go.microsoft.com/fwlink/?LinkID=111693 for details.
4
// All other rights reserved.
6
using System.Windows.Data;
9
namespace System.Windows.Controls
12
/// IValueConverter that converts any object to its ToString equivalent
14
internal class DisplayMemberValueConverter : IValueConverter
19
/// <param name="value">The value produced by the binding source.</param>
20
/// <param name="targetType">The type of the binding target property.</param>
21
/// <param name="parameter">The converter parameter to use.</param>
22
/// <param name="culture">The culture to use in the converter.</param>
23
/// <returns>A converted value.</returns>
24
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
26
return (null != value) ? value.ToString() : "";
32
/// <param name="value">The value that is produced by the binding target.</param>
33
/// <param name="targetType">The type to convert to.</param>
34
/// <param name="parameter">The converter parameter to use.</param>
35
/// <param name="culture">The culture to use in the converter.</param>
36
/// <returns>A converted value.</returns>
37
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
39
throw new NotImplementedException();