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 : 9 years ago
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 9 years ago  | Reason: Not specified

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)
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 : 9 years ago
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
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.