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
bandy  
#1 Posted : Monday, October 24, 2016 9:34:15 AM(UTC)
Quote
bandy

Rank: Newbie

Groups: Registered
Joined: 10/24/2016(UTC)
Posts: 4
Sweden
Location: Stockholm

Thanks: 1 times
Hello,

I've created a simple WPF test application (following your sample code) which loads a PDF (multiple pages) into the wpf-PdfViewer Control. It has the following attributes set:

CanVerticallyScroll="True"
CanHorizontallyScroll="True"
ScrollViewer.HorizontalScrollBarVisibility="Visible"
ScrollViewer.VerticalScrollBarVisibility="Visible"
ScrollViewer.CanContentScroll="True

Still... No scroll bars are visible.

What am I missing?

Edited by user Monday, October 24, 2016 2:30:38 PM(UTC)  | Reason: Not specified

Paul Rayman  
#2 Posted : Tuesday, October 25, 2016 6:36:16 PM(UTC)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
Hi,
you should write the following XAML

Code:

        <ScrollViewer Grid.Row="1" CanContentScroll="True"  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
            <Wpf:PdfViewer Name="pdfViewer1" />
        </ScrollViewer>
bandy  
#3 Posted : Wednesday, October 26, 2016 2:24:38 PM(UTC)
Quote
bandy

Rank: Newbie

Groups: Registered
Joined: 10/24/2016(UTC)
Posts: 4
Sweden
Location: Stockholm

Thanks: 1 times
But of course - That did it! Thanks!
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.