New to Telerik UI for WPFStart a free 30-day trial

Converts string to the geometry.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class StringToPathGeometryConverter : IValueConverter

Inheritance: objectStringToPathGeometryConverter

Implements: IValueConverter

Constructors

C#
public StringToPathGeometryConverter()

Methods

Converts a value.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The value produced by the binding source.

targetTypeType

The type of the binding target property.

parameterobject

The converter parameter to use.

cultureCultureInfo

The culture to use in the converter.

Returns:

object

A converted value. If the method returns null (Nothing in Visual Basic), the valid null value is used.

Converts string path data definition to PathGeometry object.

C#
public Geometry Convert(string path)
Parameters:pathstring

String with path data definition.

Returns:

Geometry

PathGeometry object created from string definition.

Converts a binding target value to the source binding values.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The value that the binding target produces.

targetTypeType

The array of types to convert to. The array length indicates the number and types of values that are suggested for the method to return.

parameterobject

The converter parameter to use.

cultureCultureInfo

The culture to use in the converter.

Returns:

object

An array of values that have been converted from the target value back to the source values.

Converts PathGeometry object to its string equivalent.

C#
public string ConvertBack(PathGeometry geometry)
Parameters:geometryPathGeometry

Path Geometry object.

Returns:

string

String equivalent to PathGeometry contents.