ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
Collapse the table of content
Expand the table of content

ImageSourceConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Attempts to convert a specified object to an instance of ImageSource.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Overrides Function ConvertFrom ( _
	context As ITypeDescriptorContext, _
	culture As CultureInfo, _
	value As Object _
) As Object

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext
Type context information used for conversion.
culture
Type: System.Globalization.CultureInfo
Cultural information that is respected during conversion.
value
Type: System.Object
The object being converted.

Return Value

Type: System.Object
A new instance of ImageSource.

ExceptionCondition
NotSupportedException

value is Nothing or is an invalid type.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft