Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1

TOPIC:

vZoom not working 9 years 3 months ago #8380

  • waxwings
  • waxwings's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
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.
public void ZoomIn() {
            if (zoomFactor < 3)
            {
                zoomFactor*=1.2f;
                m_view.vZoom(zoomFactor);
            }
        }
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?
public void vZoom(float scale)
            {
                if (m_status != PDFV_STATUS.STA_NONE || m_pages == null) return;
                m_scroller.ZoomToFactor(scale);
            }
regards
yimei

Please Log in or Create an account to join the conversation.

vZoom not working 9 years 1 month ago #8751

  • waxwings
  • waxwings's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Anyone taking care of this Forum? My question seems to be ignored :(

Please Log in or Create an account to join the conversation.

vZoom not working 9 years 1 month ago #8753

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
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.

Please Log in or Create an account to join the conversation.

vZoom not working 9 years 1 month ago #8757

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum