ClassShapeFactory
Class
Shape factory.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
cs-api-definition
public static class ShapeFactory
Inheritance: objectShapeFactory
Properties
ArrowGeometries
Gets the arrow geometries.
Declaration
cs-api-definition
public static Dictionary<ArrowShapeType, Geometry> ArrowGeometries { get; }
Property Value
Dictionary<ArrowShapeType, Geometry>
Remarks
See also the example in the CommonGeometries.
CommonGeometries
Gets the common geometries.
Declaration
cs-api-definition
public static Dictionary<CommonShapeType, Geometry> CommonGeometries { get; }
Property Value
Dictionary<CommonShapeType, Geometry>
Example
The following snippet of XAML binds this source of geometries to a ListBox;
csharp
<ListBox x:Name="ShapeList" >
<ListBox.ItemTemplate>
<DataTemplate>
<Path Data="{Binding Path=Value}" Tag="{Binding Path=Key}" Stroke="Orange" StrokeThickness="1" Margin="2" />
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Width="300" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
FlowchartGeometries
Gets the flowchart geometries.
Declaration
cs-api-definition
public static Dictionary<FlowChartShapeType, Geometry> FlowchartGeometries { get; }
Property Value
Dictionary<FlowChartShapeType, Geometry>
Remarks
See also the example in the CommonGeometries.
Methods
CreateCircle(double, double, Point)
Declaration
cs-api-definition
public static RadDiagramShape CreateCircle(double radiusX, double radiusY, Point center)
Parameters
radiusX
radiusY
center
Returns
CreateRectangle(Rect)
Declaration
cs-api-definition
public static RadDiagramShape CreateRectangle(Rect rect)
Parameters
rect
Returns