Class GeometryConverter
Multi-value converter that produces a RectangleGeometry for clipping based on the supplied width and height, with an optional uniform corner radius.
Inheritance
System.Object
GeometryConverter
Implements
System.Windows.Data.IMultiValueConverter
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class GeometryConverter : Object, IMultiValueConverter
Constructors
GeometryConverter()
Declaration
public GeometryConverter()
Methods
Convert(Object[], Type, Object, CultureInfo)
Creates a RectangleGeometry from the provided width, height, and optional radius.
Declaration
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object[] | values | values[0]: width (double), values[1]: height (double), values[2] (optional): uniform radius (double). |
| System.Type | targetType | The target binding type (typically Geometry). |
| System.Object | parameter | Optional converter parameter (unused). |
| System.Globalization.CultureInfo | culture | Culture information. |
Returns
| Type |
|---|
| System.Object |
ConvertBack(Object, Type[], Object, CultureInfo)
Declaration
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | |
| System.Type[] | targetTypes | |
| System.Object | parameter | |
| System.Globalization.CultureInfo | culture |
Returns
| Type |
|---|
| System.Object[] |
Implements
System.Windows.Data.IMultiValueConverter