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 : 9 years ago
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 : 9 years ago
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,115

Thanks: 8 times
Was thanked: 130 time(s) in 127 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 : 9 years ago
Quote
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

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 : 9 years ago
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,115

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
Do you use WPF or WinForms?
CSinUK  
#5 Posted : 9 years ago
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 : 9 years ago
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,115

Thanks: 8 times
Was thanked: 130 time(s) in 127 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 9 years ago  | Reason: Not specified

CSinUK  
#7 Posted : 9 years ago
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 : 9 years ago
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,115

Thanks: 8 times
Was thanked: 130 time(s) in 127 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 : 9 years ago
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 : 2 years ago
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
Guest
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.