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
|
Hello, I have a diagram with a popup that is displayed when you click an element on the diagram node. The issue I have is that if I am zoomed into the diagram - which is what happens if diagram is small enough to fit the canvas - the popup is also zoomed and enlarged! Please see the attached screenshot. My question is:
Thanks, Hadi |
|
|
Hello Hadi The easiest way I have found to work around the popup zooming, is to create a converter that takes in the zoom level of the diagram surface, then inverts it and returns a ScaleTransform which you'd apply to the Popup. Here is an example of such a converter:
And this is what you would set on the popup (where CancelZoom is an instance of the converter):
For your second question, it sounds like you may have set the ZoomMode to SizeToFit. If you set the ZoomMode of the DiagramSurface to MouseWheel, then it will default to 100% zoom on load, and enable user mouse wheel zooming. Let me know if you have further questions about these. Apologies for the late reply - I have been away for a week. Jason Fauchelle |
|
|
Thanks a lot Jason, that did the trick. |
|