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
|
So we have our data templates for the individual diagram nodes. Those data templates expose user controls that are interactive. This means that the templates need to be HitTestVisible. But when I do this, I can no longer drag the nodes around. I get resize handles and those work fine, but there is nowhere I can grab to just move the node. Would it be possible for you to modify the default styles so that the spaces between the resize handles act as move handles for the node? I know that I can surround my UserControl with a grid that has non-HitTestVisible buffers for moving. I'd like to avoid that, since you already have a perfectly good location for users to click. Thanks, -Scott |
|
|
Hello Scott Thanks for your feedback. Just to ensure I'm on the right page - do you mean you'd like the white space between the resize grip and the node to allow you to move the node? There is some current ordering issues that would occur around the corners (you'll notice there is not space in the white area of the corners where the mouse isn't doing a resize or a move function) but we could certainly look at improving the default styles to accommodate this. Let me know if I'm on the right track. Cheers |
|
|
Yes, I was thinking that the whitespace between the resize groups would allow moving. I didn't have any expectation for the whitespace around the corners, so I think we're on the same page. |
|
|
Hello Scott I tried this out and it worked quite well except for one main issue. The extended move thumb covered up most of the connection relocators making it rather difficult to reach them to re-route a connection. Overall I would sugest that putting a buffer between the user controls and the edge of the node like you mentioned is going to be the best way to go. Regards |
|
|
Yes, I've implemented this with the buffer, and it works quite well. |
|