CanConvertFrom Method (ITypeDescriptorContext, Type)
Collapse the table of content
Expand the table of content

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)

'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.Boolean
true if the converter can convert the provided type to an instance of ImageSource; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft