Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Magnifier - Pick and leave at any point

$
0
0
Hi,

It's a good idea, but if a text is to be magnified, using the mouse left button down should select the text, even if magnified.
Here's a suggestion you can try :
Start with a magnifier zoomFactor = 1 (no zoom)
On the data you want to magnify, add PreviewMouseLeftButtonDown and PreviewMouseLeftButtonUp (it could be mouseRight button as you wish) event handlers. On the callback of PreviewMouseLeftButtonDown, set the magnifier zoomFactor to 0.4 to activate the zoom. On the callback of PreviewMouseLeftButtonUp, set the magnifier zoomFactor to 1 to de-activate the zoom.
You should be able to modify the zoom with mouse clicks.

Viewing all articles
Browse latest Browse all 2157

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>