logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
jeff.huckins Posted: Friday, September 15, 2023 12:27:02 PM(UTC)
 
None of these suggestions work for me. I simply cannot get the PdfViewer to scroll, as no scrollbar shows up. I can only use the mouse to pan it up and down. Here is my xaml declaration:

<ScrollViewer Grid.Row="1" CanContentScroll="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
<wpf:PdfViewer x:Name="Viewer" ViewMode="Vertical" CanVerticallyScroll="True" MouseMode="PanTool"/>
</ScrollViewer>
CSinUK Posted: Friday, February 26, 2016 3:04:22 AM(UTC)
 
I've found out what is causing the issue.

We're overriding the styling of the scrollbar within the application. This works fine everywhere else in the application where a scroll bar is used. Once I take off the new styling then the scroll bar re-appears when viewing PDF documents.

We're developing a touch base application and therefore wish to present the scroll bar more similar to a mobile device.

I'll investigate the way it is restyled to try and determine what is causing the issue.

Thanks for your help.
Paul Rayman Posted: Thursday, February 25, 2016 3:47:31 AM(UTC)
 
You can send it at support@patagames.com

Also you can send a sample VC project with minimal code that reproduce this problem
CSinUK Posted: Thursday, February 25, 2016 2:54:39 AM(UTC)
 
I've tried that and it's just the same.

I was going to attach a screenshot but I can't see the Attach button that is mentioned in the Forum help.
Paul Rayman Posted: Wednesday, February 24, 2016 5:03:44 PM(UTC)
 
Do you use it like shown below?
Code:

<ScrollViewer CanContentScroll="True"  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
    <Wpf:PdfViewer Name="pdfViewer1" />
</ScrollViewer>
CSinUK Posted: Wednesday, February 24, 2016 10:35:55 AM(UTC)
 
We're using WPF
Paul Rayman Posted: Wednesday, February 24, 2016 8:33:25 AM(UTC)
 
Do you use WPF or WinForms?
Guest Posted: Wednesday, February 24, 2016 6:55:19 AM(UTC)
 
Thanks for the reply, unfortunately that doesn't work.

This is the only properties I'm setting:

pdfViewer.CanVerticallyScroll = true;
pdfViewer.CanHorizontallyScroll = false;
pdfViewer.MouseMode = MouseModes.PanTool;
pdfViewer.ViewMode = ViewModes.Vertical;

The PDF documents are display just as we would like i.e. full page width and then able to pan with the mouse/finger. It would be preferable to have a scroll bar present as well if possible.
Paul Rayman Posted: Wednesday, February 24, 2016 6:00:20 AM(UTC)
 
The scroll bars are displayed automatically when the content does not fit into the viewing area.
I guess you need to set the PdfViewer to vertical viewing mode.
Code:

pdfViewer1.ViewMode = ViewModes.Vertical;
CSinUK Posted: Wednesday, February 24, 2016 4:06:04 AM(UTC)
 
Is it possible to have the vertical scroll bar visible?

We are using the PDF viewer in MouseMode PanTool.