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 know I've sent across quite a bit lately. Apologies if it's an overload. If it's any consolation, I think we're in the homestretch. I saw your guidance for setting node size, and I'm using the Tag pattern, which is working nicely. The problem I'm having now is determining how big to make the node. The diagram node I'm resizing has a UserControl that contains only an expander with a nested DiagramSurface as it's content. I want to set the Bounds of the containing node so that the nested DiagramSurface shows no scrollbars. To do this, I'm looking inside the DiagramSurface.ScrollViewer.Extent property. I assign this plus the ScrollViewer.ExtraSpace buffers to the containing node.Bounds. In code: private void Expander_Expanded(object sender, RoutedEventArgs e) The problem I'm having is that as I go through multiple iterations of expanding and collasping, the ScrollViewer.Extent gets bigger and bigger without end. It's not a small increase. After a 5-7 iterations, the extent is >15,000 pixels wide, though it only contains a few small nodes. Do you have any idea of what's happening? Should I be looking somewhere else for that? I think this may be another manifestation of the same issue that causes the scrollbars of nested DSs to affect the snaplines of the outermost DS. |
|