ValueConverters

Registry of named IValueConverters referenced from {Path | name}.

Public Methods

Register

public static void Register(string name, IValueConverter converter)

Registers (or replaces) a converter under name.

Parameters:

  • name (string): The name used in binding expressions.
  • converter (IValueConverter): The converter.

Get

public static IValueConverter? Get(string? name)

Gets a converter by name, or null.

Parameters:

  • name (string?): The converter name.

Returns: IValueConverter?