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

Shape factory.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public static class ShapeFactory

Inheritance: objectShapeFactory

Properties

Gets the arrow geometries.

C#
public static Dictionary<ArrowShapeType, Geometry> ArrowGeometries { get; }
Remarks:

See also the example in the CommonGeometries.

Gets the common geometries.

C#
public static Dictionary<CommonShapeType, Geometry> CommonGeometries { get; }
Example:
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>

Gets the flowchart geometries.

C#
public static Dictionary<FlowChartShapeType, Geometry> FlowchartGeometries { get; }
Remarks:

See also the example in the CommonGeometries.

Methods

C#
public static RadDiagramShape CreateCircle(double radiusX, double radiusY, Point center)
Parameters:radiusXdoubleradiusYdoublecenterPointReturns:

RadDiagramShape

C#
public static RadDiagramShape CreateRectangle(Rect rect)
Parameters:rectRectReturns:

RadDiagramShape

Gets a geometry of a specified arrow shape type.

C#
public static Geometry GetShapeGeometry(ArrowShapeType shapeType)
Parameters:shapeTypeArrowShapeTypeReturns:

Geometry

Gets a geometry of a specified common shape type.

C#
public static Geometry GetShapeGeometry(CommonShapeType shapeType)
Parameters:shapeTypeCommonShapeTypeReturns:

Geometry

Gets a geometry of a specified flow chart shape type.

C#
public static Geometry GetShapeGeometry(FlowChartShapeType shapeType)
Parameters:shapeTypeFlowChartShapeTypeReturns:

Geometry