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 was testing. I unripe English. Applying CustomStyle.FlowDiagrams\DemoStyleConnections.xaml to NodeGrouping\Styles\DiagramStyle.xaml sample. ArrowHead has escaped the area when folded. |
|
|
Hello, Sorry, the CustomStyle.FlowDiagram connection style is a little old. To fix the issue, open up DiagramStyle.xaml in your app. Search for the "ConnectionStyle" resource, and then delete the entire "Template" setter. Your ConnectionStyle resource should now look like this:
You should not need to provide a custom Template for the connection unless you'll be doing some extreme customizations. Deleting the Template setter from your connection style will cause connections to use our built in template which is up to date and working correctly. Sorry for the misdirection with the old code. Please let me know if you have further questions about this. -Jason Fauchelle |
|
|
I want.... ConnectionContentBox to position on the ToConnectionPoint. with GroupNode I tested using Template > ContentPresenter > ContentPresenter.RenderTransform, ConnectionContentTransformConverter How can i without Template ? |
|
|
Sorry, To position the text box at the destination of the connections, you will need the custom connection template. So here's how to solve you original problem with the template: Add the following resources to your xaml file:
Replace the end arrow and start arrow sections in the template with these:
And also, replace the "toPoint" and "fromPoint" ConnectionRelocatorThumb controls with the following. (This is to solve the same issue with the arrows for the connection relocator thumbs).
Let me know if you have further questions about this. -Jason Fauchelle |
|
|
Thank you very much! It works! But, when To position the text box at the destination of the connections. ContentTextBox has escaped the area when folded. (attached capture file) I want show ContentTextBox at GroupNode Point when folded. I will use the Destination ContentBox to apply only in special cases. (ex. if node..) I will use custom ConnectionContentTransformConverter. Please, help me
|
|
|
Hello, I recommend using the Segments collection in the converter to get the destination position. This is much easier to work with when grouping is involved. Here's an example of what the converter could look like. The first parameter is a list of segments that make up the connection, then I just grab the last point which is the destination position of the connection.
Then the binding would look like this:
You should be able to make any further customizations to this that you need. Let me know if you have further questions. -Jason Fauchelle |
|