System.Windows.Controls.AutoCompleteBox.FormatValue C# (CSharp) Méthode

FormatValue() protected méthode

Converts the specified object to a string by using the P:System.Windows.Data.Binding.Converter and P:System.Windows.Data.Binding.ConverterCulture values of the binding object specified by the P:System.Windows.Controls.AutoCompleteBox.ValueMemberBinding property.
Override this method to provide a custom string conversion.
protected FormatValue ( object value ) : string
value object The object to format as a string.
Résultat string
        protected virtual string FormatValue(object value)
        {
            if(_valueBindingEvaluator != null)
            {
                return _valueBindingEvaluator.GetDynamicValue(value) ?? string.Empty;
            }

            return value == null ? string.Empty : value.ToString();
        }

Same methods

AutoCompleteBox::FormatValue ( object value, bool clearDataContext ) : string