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

InputScopeNameConverter.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 InputScopeName type.

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

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

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.Boolean
true if sourceType is type String; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft