ImageSourceConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the converter can convert an object of the given type to an instance of ImageSource.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Overrides Function CanConvertFrom ( _ context As ITypeDescriptorContext, _ sourceType As Type _ ) As Boolean
Parameters
- context
- Type: System.ComponentModel.ITypeDescriptorContext
Type context information used to evaluate conversion.
- sourceType
- Type: System.Type
The type of the source that is being evaluated for conversion.
Return Value
Type: System.Booleantrue if the converter can convert the provided type to an instance of ImageSource; otherwise, false.
Show: