canadaklion.blogg.se

Xdiagram windows
Xdiagram windows











xdiagram windows

Source of type IConnector: Required parameter that sets the Source of the connection. You can also attach a connection to a source and target shape using the RadDiagramConnection.Attach() method. For more detailed information, please, view the CapTypes section below. SourceCapType/TargetCapType - both properties are an enumeration of type CapType that allow you to choose a cap from a set of predefined Cap types. SourceCapSize/TargetCapSize - these properties are of type Size and they get or set the size of the SourceCap/TargetCap. The Diagramming Framework provides a ConnectorPosition static class, which you can use to define the connector positions from code-behind: Right: Use it to define the right connector of a shape as the source/target point of the connectionīottom: Use it to define the bottom connector of a shape as the source/target point of the connection Top: Use it to define the top connector of a shape as the source/target point of the connection Left: Use it to define the left connector of a shape as the source/target point of the connection Alternatively, the TargetConnectorPosition will be set to the nearest shape connector, based on the start point position of the connection. Based on the end point position, the SourceConnectorPosition will be set to the nearest shape connector. This option will allow the connection to dynamically determine which shape connector to be used as a start/end point. There are five predefined strings that you can use to define where to position the connectors of the connection:Īuto: Use it if you want to automatically determine the start/end point of a connection. You can find more information about the RadDiagramShape connectors in the DiagramShapes topic. SourceConnectorPosition/TargetConnectorPosition: Both properties are of type string and they get or set the source/target connector position. Source/Target: These properties get or set the source/target RadDiagramShape of a connection. StartPoint/EndPoint: These properties are of type Point and they set or get the start/end point of a connection. The RadDiagramConnection class exposes the following properties that allow you to control the start and end points of a connection: You can configure the source and the target of a connection as a point or as a shape. Configure the Source and Target of a Connection You can also control the type of a connection using the ConnectionType property, add a custom content and customize the overall look and feel of the items. You can choose from a list of predefined cap types thus customizing the start and end point of the connection to better fit in your application scenario. You can use its extensive API to configure its source and target points or shapes. The RadDiagramConnection is basically an object that connects zero, one or two shapes:

xdiagram windows

Xdiagram windows how to#

In the Setting a Theme article you can find more information on how to set an application-wide theme. Please note that the examples in this tutorial are showcasing Telerik Windows8 theme. Configure the Source and Target of a Connectionīefore proceeding with this topic, it is recommended to get familiar with the Visual Structure of the Diagramming Framework.This tutorial will walk you through the functionality and the main features of the RadDiagramConnection.













Xdiagram windows