ResourceReferenceExpressionConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns a value that indicates whether the converter can convert from a source object to a ResourceReferenceExpression object.

Namespace:   System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType


Type: System.ComponentModel.ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

Type: System.Type

The type to convert from.

Return Value

Type: System.Boolean

true if the converter can perform the conversion; otherwise, false.

.NET Framework
Available since 3.0
Return to top