Rank: Newbie
Groups: Registered
Joined: 1/12/2016(UTC) Posts: 5 Location: Newcastle Thanks: 1 times
|
Is it possible to have the vertical scroll bar visible?
We are using the PDF viewer in MouseMode PanTool.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,102
Thanks: 7 times Was thanked: 128 time(s) in 125 post(s)
|
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;
|
|
|
|
Rank: Guest
Groups: Guests
Joined: 1/5/2016(UTC) Posts: 163
Was thanked: 5 time(s) in 5 post(s)
|
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.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,102
Thanks: 7 times Was thanked: 128 time(s) in 125 post(s)
|
Do you use WPF or WinForms?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/12/2016(UTC) Posts: 5 Location: Newcastle Thanks: 1 times
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,102
Thanks: 7 times Was thanked: 128 time(s) in 125 post(s)
|
Do you use it like shown below? Code:
<ScrollViewer CanContentScroll="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
<Wpf:PdfViewer Name="pdfViewer1" />
</ScrollViewer>
Edited by user Wednesday, February 24, 2016 5:04:31 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/12/2016(UTC) Posts: 5 Location: Newcastle Thanks: 1 times
|
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.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,102
Thanks: 7 times Was thanked: 128 time(s) in 125 post(s)
|
You can send it at support@patagames.comAlso you can send a sample VC project with minimal code that reproduce this problem
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/12/2016(UTC) Posts: 5 Location: Newcastle Thanks: 1 times
|
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.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/14/2023(UTC) Posts: 1 Location: Beaverton, OR
|
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>
|
|
|
|
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
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