Class ShapeFactory
Shape factory.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Diagrams
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public static class ShapeFactory
Properties
ArrowGeometries
Gets the arrow geometries.
Declaration
public static Dictionary<ArrowShapeType, Geometry> ArrowGeometries { get; }
Property Value
System.Collections.Generic.Dictionary<ArrowShapeType, Geometry>
|
Remarks
See also the example in the CommonGeometries.
See Also
CommonGeometries
Gets the common geometries.
Declaration
public static Dictionary<CommonShapeType, Geometry> CommonGeometries { get; }
Property Value
System.Collections.Generic.Dictionary<CommonShapeType, Geometry>
|
Examples
The following snippet of XAML binds this source of geometries to a ListBox;
<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>
See Also
FlowchartGeometries
Gets the flowchart geometries.
Declaration
public static Dictionary<FlowChartShapeType, Geometry> FlowchartGeometries { get; }
Property Value
System.Collections.Generic.Dictionary<FlowChartShapeType, Geometry>
|
Remarks
See also the example in the CommonGeometries.
See Also
Methods
CreateCircle(Double, Double, Point)
Declaration
public static RadDiagramShape CreateCircle(double radiusX, double radiusY, Point center)
Parameters
System.Double
radiusX
|
System.Double
radiusY
|
Point
center
|
Returns
RadDiagramShape
|
CreateRectangle(Rect)
Declaration
public static RadDiagramShape CreateRectangle(Rect rect)
Parameters
Rect
rect
|
Returns
RadDiagramShape
|