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.
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.
| Exception | Condition |
|---|---|
| NotSupportedException | value is Nothing or is an invalid type. |
Show: