Return Value

For use as a type converter for custom-type attribute handling in Silverlight XAML, you should define the CanConvertFrom(ITypeDescriptorContext, Type) signature with your implementation. Return true if sourceType is of type String; otherwise, false. Do not rely on information in context, it may be Nothing. Do not throw if context is Nothing; the other signature (CanConvertFrom(Type)) calls this one, passing a null context.