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
eagleview  
#1 Posted : Sunday, January 31, 2016 5:39:43 PM(UTC)
Quote
eagleview

Rank: Member

Groups: Registered
Joined: 1/28/2016(UTC)
Posts: 17
United States

Thanks: 3 times
Hi,

Making progress with PDFium but hit one snag. The PDFViewer is contained in a ScrollViewer and working fine (scrolling, highlighting text, etc). But when the window is resized, the PDFViewer remains the same size. Is there a way to have the PDFViewer resize when the Main Window with the Scrollviewer are resized. I need the PDFViewer larger at times, depending upon what options/windows the user has selected. Any help is very much appreciated. Thanks!
Paul Rayman  
#2 Posted : Sunday, January 31, 2016 8:14:04 PM(UTC)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Change the parent control to the Grid or other, which support needed behaviour

Example in this post works as you need.
thanks 1 user thanked Paul Rayman for this useful post.
eagleview on 2/1/2016(UTC)
eagleview  
#3 Posted : Monday, February 1, 2016 5:24:17 AM(UTC)
Quote
eagleview

Rank: Member

Groups: Registered
Joined: 1/28/2016(UTC)
Posts: 17
United States

Thanks: 3 times
Thanks for your help! I cannot seem to find the example in the post. Is it an an attachment?
Paul Rayman  
#4 Posted : Monday, February 1, 2016 5:50:33 AM(UTC)
Quote
Paul Rayman

Rank: Administration

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

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Originally Posted by: eagleview Go to Quoted Post
I cannot seem to find the example in the post. Is it an an attachment?


No. Not in attachment. Just a XAML code of window whith PdfViewer on it.

eagleview  
#5 Posted : Monday, February 1, 2016 10:03:26 AM(UTC)
Quote
eagleview

Rank: Member

Groups: Registered
Joined: 1/28/2016(UTC)
Posts: 17
United States

Thanks: 3 times
Ahh - I found the code. I could not discern that there was a link in your response (colors kinda merged on my screen). Thanks for the info. I tried and it seems to move the window towards the center as the window is enlarged but it remains the same size across. I guess I'm lookning for an auto zoom of the PDF. Maybe its more of a toolbar item. Not sure. But it does display the entire PDF contents within the width of the original PDFViewer which is good. But if a user want to increase everything in the main window it does not increase the size of the PDFViewer and contents. It is only recentering the viewer within the window. Not sure if there is anyway to do what I'm thinking would be accomplished. Thanks though for your help with this post.
eagleview  
#6 Posted : Monday, February 1, 2016 10:29:01 AM(UTC)
Quote
eagleview

Rank: Member

Groups: Registered
Joined: 1/28/2016(UTC)
Posts: 17
United States

Thanks: 3 times
One thing I did notice that may be a problem with VS WPF Scrollviewer is that the Horizontal Scroll does not appear even when made Visible. The Vertical works fine.
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.