Converts string to the geometry.
Definition
Namespace:Telerik.Windows.Controls.Map
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public class StringToPathGeometryConverter : IValueConverter
Inheritance: objectStringToPathGeometryConverter
Implements:
Constructors
public StringToPathGeometryConverter()
Methods
Converts a value.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value produced by the binding source.
targetTypeTypeThe type of the binding target property.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe culture to use in the converter.
Returns: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.
public Geometry Convert(string path)
String with path data definition.
Returns:Geometry
PathGeometry object created from string definition.
Converts a binding target value to the source binding values.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The value that the binding target produces.
targetTypeTypeThe array of types to convert to. The array length indicates the number and types of values that are suggested for the method to return.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe culture to use in the converter.
Returns:An array of values that have been converted from the target value back to the source values.
Converts PathGeometry object to its string equivalent.
public string ConvertBack(PathGeometry geometry)
Path Geometry object.
Returns:String equivalent to PathGeometry contents.