When I zoom the charts (ZoomMode="Both"/"X"/"Y") my UI gets stuck when I zoom "too much" - I mean when I zoom with the mouse wheel to the max and then the UI doesn't respond anymore.
If you look at the picture on the right side you will see I got to zoom when I lost the Y scale.
I want to reset the zoom by setting the MinLimit/MaxLimit to null according to the doco, but I have no idea when is the right moment to set the Min/Max limit and then the UI gets stuck.
Any ideas? why is this happening and how to solve the problem/bug?
Related
In the image above the Back button was in the corner of the screen and the right arrow was near the end of the canvas. I left my computer for like 30 mins and I come back to it like this, I've tried fixing it but if I scale the canvas it still isn't right and id have to adjust all the UI I have done. Is there a way to reset the canvas to normal or some kind of fix? I don't have time to rescale all my UI so it would be nice to know, thanks.
Make sure the Canvas is set to "Scale with screen size" and that the "Back" button is pivoted ( go to pivot -> upper right corner and use ALT and then SHIFT to make sure it's pivoted ).
Other than this, if it was your cat just "Ctrl+Z" your way out or revert to a slighty older version if you are using version control.
For some reason unity re-scaled itself and now everything is (mostly) back to normal, I have no idea how this happened and how it fixed itself (I hadn't touched the project since this post until now (about a day later) and it was fixed)
How to Zoom picture while capturing Photo and set Focus property accordingly using Media.Capture Api in wp8.1
It is important to realize that most cameras do not support zoom and the zoom you see in the API is accomplished with a digital, false zoom. Using a ScrollViewer will zoom the UI making it look like the picture is zoomed - but the camera is not doing anything. This may not matter to you. But it might. And, if it does, then the answer is "you cannot reliably zoom the camera".
I'm currently developing a 3D viewer application in WPF, and for ergonomy reasons I want my mouse to go to the other border of the screen if it goes into one.
For example, if my mouse goes into the top screen border, set I set my mouse position to the bottom of my screen.
Same for left/right.
How can I actually detect my mouse position in WPF? The only position I can get is related to the software and not the entire screen.
Also, it would be great if it could support dual monitors. (So the mouse is re-set only if it goes into the second monitor)
based on the informative answers to the s.o. question here:
How do I get the current mouse screen coordinates in WPF?
I think the simpler way to go is the windows.forms method, unless your 3d graphics are updating a lot of computation and you don't want the extra .net unboxed loop performance margin hit. According to this msdn reference:
http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor.position.aspx
the Cursor.Position property is settable, so should be settable from WPF app, although you want to do some research and testing before committing to a lot of code on that
I have seen lot of posts which demonstrate how to move objects in a Canvas but what I need is, a way to move either
1. the entire canvas along with its every child
or
2. move every object manually (which is certainly not advisable)
I have put my Canvas in a ScrollViewer.
My actual issue is : I m trying to zoom the canvas using ScaleTransform but after zooming, i also need to move the scroll viewer to a point such that the clicked point is at the center after zooming.
I tried Canvas.SetLeft() and Canvas.SetTop() but bad luck..
Any idea?
Thanks in Advance..
You can communicate with the ScrollViewer to make it scroll its content to a particular offset by using ScrollToVerticalOffset and ScrollToHorizontalOffset.
You'll need to calculate the correct offset by taking into account the size of the "viewport" i.e. the area that you can see of the content, and the zoom level.
http://go4answers.webhost4life.com/Example/center-zoom-wpf-problem-159135.aspx
This might be useful for what you are doing:
http://autoscroller.codeplex.com/
I am using Ajax toolkit and ModalPopExtender specifically, works fine, just have a big time issue with its positioning, I am using it to display images and all images have different height and width and hence some times it appears like bottom left of the screen with half of it going off the screen, I could have fixed it by specifying values for X and Y coordinates, but since the images sizes changes, if image is to small then user need to scroll the pointer all the way up.
The thing is it appears at a random location but as soon as I scroll or re size page, it relocates it self to the exact center of the screen (where its actually required).
Experts, kindly suggest a work around.
Thanks in advance.
Looks like there is no rigid solution to it, We contacted MSDN team as well, solved by replacing it with the Jquery Light Box.