FailIfEmptyAccessKeyRemovingConverter Class

Definition

A string-to-string value converter that will return one of two values:

1.  The input string (minus accelerators), if it is non-null and not empty.
2.  DependencyProperty.UnsetValue, if the input string is null or empty.

Returning DependencyProperty.UnsetValue will cause PriorityBinding to consider a binding to which this converter is applied a failure, so it will continue searching for a matching binding.

Deriving this class from ValueConverter would eliminate the input type validation, but the virtual overload of ValueConverter.Convert strongly types its return value. This converter's Convert method needs to be able to return either a string or an object.

public ref class FailIfEmptyAccessKeyRemovingConverter : System::Windows::Data::IValueConverter
public class FailIfEmptyAccessKeyRemovingConverter : System.Windows.Data.IValueConverter
type FailIfEmptyAccessKeyRemovingConverter = class
    interface IValueConverter
Public Class FailIfEmptyAccessKeyRemovingConverter
Implements IValueConverter
Inheritance
FailIfEmptyAccessKeyRemovingConverter
Implements

Constructors

FailIfEmptyAccessKeyRemovingConverter()

Microsoft internal use only.

Methods

Convert(Object, Type, Object, CultureInfo)

Microsoft internal use only.

ConvertBack(Object, Type, Object, CultureInfo)

Microsoft internal use only.

Applies to