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
|
Hi, I remember previously the ConnectionPointThumb won't disappear when we dragging a connection to node. But right now, it seems to behave differently. Whenever a connection is being drag to the node, all the outbound connectionPoint that is not able to receive connection will be hidden. I tried to find the relevant triggers in the new styles but I can't find it. Would you point me to the correct direction on this? Thanks |
|
|
Hello To do this you will need to use a custom ConnectionPointThumb style. I think you have applied custom connection point styles before, but let me know if you need help getting it to work. You can follow the default ConnectionPointThumb style on line 172 of Generic.xaml. Start by adding these two triggers to the end of the triggers collection. These will allow the connection points to be visible regardless of connection validation logic. Let me know if this gets the behaviour you're looking for.
-Jason |
|
|
Arh, got it finally. Remembered there was these triggers before, just not sure since when I can't find it. I tried it just now with the triggers, but it doesn't work. :/ Not sure why, you could try put it in the repo that I uploaded just now. |
|
|
Hello In the repro that you uploaded, you can use a setter on all the connectionPointThumb styles to set the OverridesDefaultStyle to be true. This will prevent any of the triggers for the ConnectionPointThumb in Generic.xaml from being used. So the logic for hidding the connection points will be disabled. By using this setter, you will not need to use the 2 triggers I mentioned previously, and you also won't need a setter for the Visibility property on the ConnectionPointThumb styles. Let us know how this goes. -Jason |
|
|
Ah, so that is the key, should have tried OverrideDefaultStyle before. Thanks, it works now. :) |
|
|
Hi, I have another question regarding triggers. Is there any triggers that do this: When dragging a connection over a Node, it highlights the node only. When dragging a connection over a ConnectionPoint, it hightlights the ConnectionPoint only and NOT the node. Is this possible? I tried the IsToConnectionDragOver / IsFromConnectionDragOver, both can't achieve the effect because the Node will always being triggered whenever dragging over a ConnectionPoint. |
|
|
Hello At the moment there are no properties that can be used to get this effect. We will probably add this in a future enhancement. - I have noted this down with high priority. -Jason |
|