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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
CSinUK  
#1 Posted : Wednesday, February 24, 2016 4:06:04 AM(UTC)
Quote
CSinUK

Rank: Newbie

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 5
United Kingdom
Location: Newcastle

Thanks: 1 times
Is it possible to have the vertical scroll bar visible?

We are using the PDF viewer in MouseMode PanTool.

Paul Rayman  
#2 Posted : Wednesday, February 24, 2016 6:00:20 AM(UTC)
Quote
Paul Rayman

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;
Guest  
#3 Posted : Wednesday, February 24, 2016 6:55:19 AM(UTC)
Quote
Guest

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.
Paul Rayman  
#4 Posted : Wednesday, February 24, 2016 8:33:25 AM(UTC)
Quote
Paul Rayman

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?
CSinUK  
#5 Posted : Wednesday, February 24, 2016 10:35:55 AM(UTC)
Quote
CSinUK

Rank: Newbie

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 5
United Kingdom
Location: Newcastle

Thanks: 1 times
We're using WPF
Paul Rayman  
#6 Posted : Wednesday, February 24, 2016 5:03:44 PM(UTC)
Quote
Paul Rayman

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

CSinUK  
#7 Posted : Thursday, February 25, 2016 2:54:39 AM(UTC)
Quote
CSinUK

Rank: Newbie

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 5
United Kingdom
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.
Paul Rayman  
#8 Posted : Thursday, February 25, 2016 3:47:31 AM(UTC)
Quote
Paul Rayman

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.com

Also you can send a sample VC project with minimal code that reproduce this problem
CSinUK  
#9 Posted : Friday, February 26, 2016 3:04:22 AM(UTC)
Quote
CSinUK

Rank: Newbie

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 5
United Kingdom
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.
jeff.huckins  
#10 Posted : Friday, September 15, 2023 12:27:02 PM(UTC)
Quote
jeff.huckins

Rank: Newbie

Groups: Registered
Joined: 9/14/2023(UTC)
Posts: 1
United States
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>
Quick Reply Show Quick Reply
Users browsing this topic
New Topic Post Reply
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.