|
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>
|
|
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.
|
|
You can send it at support@patagames.comAlso you can send a sample VC project with minimal code that reproduce this problem
|
|
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.
|
|
Do you use it like shown below? Code:
<ScrollViewer CanContentScroll="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
<Wpf:PdfViewer Name="pdfViewer1" />
</ScrollViewer>
|
|
We're using WPF
|
|
Do you use WPF or WinForms?
|
|
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.
|
|
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;
|
|
Is it possible to have the vertical scroll bar visible?
We are using the PDF viewer in MouseMode PanTool.
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close