Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CornerRadiusConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 

Converts the specified object to a CornerRadius.

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

public override object ConvertFrom(
	ITypeDescriptorContext typeDescriptorContext,
	CultureInfo cultureInfo,
	object source
)

Parameters

typeDescriptorContext
Type: System.ComponentModel.ITypeDescriptorContext

Describes the context information of a type.

cultureInfo
Type: System.Globalization.CultureInfo

Describes the CultureInfo of the type being converted.

source
Type: System.Object

The object being converted.

Return Value

Type: System.Object

The CornerRadius created from converting source.

Exception Condition
ArgumentNullException

source is null.

ArgumentException

source is not null and is not a valid type which can be converted to a CornerRadius.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft