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.
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.