| Visual Basic (Declaration) | |
|---|---|
Public Overloads Shared Sub RegisterConvention( _ ByVal converter As IValueConverter, _ ByVal bindableProperty As DependencyProperty, _ ByVal dataPropertyType As Type _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim converter As IValueConverter Dim bindableProperty As DependencyProperty Dim dataPropertyType As Type ValueConverterConventionRegistry.RegisterConvention(converter, bindableProperty, dataPropertyType) | |
| C# | |
|---|---|
public static void RegisterConvention( IValueConverter converter, DependencyProperty bindableProperty, Type dataPropertyType ) | |
| C++/CLI | |
|---|---|
public: static void RegisterConvention( IValueConverter^ converter, DependencyProperty^ bindableProperty, Type^ dataPropertyType ) | |
Parameters
- converter
- The converter instance returned by the ValueConverterConvention.
- bindableProperty
- The binding property to which this converter applies.
- dataPropertyType
- The type of the data property that this converter can convert.
See PathToImageSourceConverter for an example.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family