Rank: Member
Groups: Registered
Joined: 1/28/2016(UTC) Posts: 17  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!
|
|
|
|
|
|
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.
|
 1 user thanked Paul Rayman for this useful post.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/28/2016(UTC) Posts: 17  Thanks: 3 times
|
Thanks for your help! I cannot seem to find the example in the post. Is it an an attachment?
|
|
|
|
|
|
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  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.
|
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/28/2016(UTC) Posts: 17  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.
|
|
|
|
|
|
Rank: Member
Groups: Registered
Joined: 1/28/2016(UTC) Posts: 17  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.
|
|
|
|
|
|
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.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close