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.
Namespace: System.Windows.Media
Assembly: System.Windows (in System.Windows.dll)
Syntax
Public Overrides Function CanConvertFrom ( _
context As ITypeDescriptorContext, _
sourceType As Type _
) As Boolean
public override bool CanConvertFrom(
ITypeDescriptorContext context,
Type sourceType
)
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..::.Boolean
true if the converter can convert the provided type to an instance of ImageSource; otherwise, false.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone