- Posts: 6
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
vZoom not working
IP: 192.168.0.71
11 years 7 months ago #8380
by waxwings
vZoom not working was created by waxwings
Hi,
i am trying to implement a button for zooming. Somehow it only works for once. The second time i click on the button nothing happens. Here is my code.
As i debug i find out that the m_status is set to PDF_STATUS.ZOOM after i once zommed. How can i set the status back?
regards
yimei
i am trying to implement a button for zooming. Somehow it only works for once. The second time i click on the button nothing happens. Here is my code.
Code:
public void ZoomIn() {
if (zoomFactor < 3)
{
zoomFactor*=1.2f;
m_view.vZoom(zoomFactor);
}
}
Code:
public void vZoom(float scale)
{
if (m_status != PDFV_STATUS.STA_NONE || m_pages == null) return;
m_scroller.ZoomToFactor(scale);
}
yimei
11 years 5 months ago #8751
by waxwings
Replied by waxwings on topic vZoom not working
Anyone taking care of this Forum? My question seems to be ignored
11 years 5 months ago #8753
by support
Replied by support on topic vZoom not working
We've had a lot of delay about Windows version support.
I'm pushing your request to my colleagues.
We're really sorry about that.
I'm pushing your request to my colleagues.
We're really sorry about that.
11 years 5 months ago #8757
by nermeen
Replied by nermeen on topic vZoom not working
Usually the m_view.vZoom only launches the zoom process, the methods that controls the status are ZoomStart and ZoomEnd.
So what you need to do is to make these 2 methods public in PDFView.cs and call them in the appropriate time.
So what you need to do is to make these 2 methods public in PDFView.cs and call them in the appropriate time.
Time to create page: 0.403 seconds