This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I can not find a style selector for a connection when it is selected. Right now in all the samples I looked at when a connection is selected it is thicker than the default connection and is gray.
I have made the style for some of my connections have a larger thickness so then you can not tell it is selected.
Any help is appreciated.
Michael
|
|
|
Hello Michael Changing the appearance of a connection in split into 2 parts: The connection style and the connection template. The style is simply used for change the color, thickness or dash array of the connection line which sounds like you have been working with so far. The template defines the more complicated aspects such as text box placement, arrow heads, connection controls and how the connection should look when it is selected. In the samples solution, you should see a project called CustomStyle. There is a file here called DemoStyleConnections.xaml which has a template you can use for connections. Its the longest template in the file and is called ConnectionTemplate. You can copy this template into your own style and give it to the diagram surface by setting the FlowDiagramFormatter.ConnectionTemplateSelector property. Of course you will also need to copy some of the other resources in the DemoStyleConnections file to get it to work. Near the top of the connection template, you will see the following comment: "<!-- The appearance of the connection itself -->" Under this comment there is a path that defines the connection itself and a path for the selection. Play around with this to get the selection effect that you want. Note that the arrow head also has its own selection path that you may want to modify as well. By using this connection template and the other provided resources, the connection segment thumbs and the connection relocator thumbs are going to look different than what you currently have from the standard themes. You could use this opportunity to customize the look and feel of these controls yourself, or let me know if you need the original templates. Regards |
|
|
Thank you very much for your help. I somehow missed that example in the examples solution and this let me complete exactly what I needed. Michael |
|