DurationConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns whether this converter can convert an object of one type to the Duration type.
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
An ITypeDescriptorContext that provides a format context.
- sourceType
- Type: System.Type
A Type that represents the type you want to convert from.
Return Value
Type: System.Booleantrue if this converter can perform the conversion; otherwise, false.
Show: