Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WPF] Resizing problem #100

Closed
stefmancio opened this issue Apr 20, 2020 · 5 comments
Closed

[WPF] Resizing problem #100

stefmancio opened this issue Apr 20, 2020 · 5 comments
Labels

Comments

@stefmancio
Copy link

Hi,
In the WPF project, when i try to resize the page... if i set size values bigger than around 1300, the page doesn't resize as as indicated by the entered values,

image

There is a way to encrease the max a bit? like 3000 ?
It would be perfect...
Thank you for your attention...

@wieslawsoltes wieslawsoltes changed the title resizing problem Apr 20, 2020
@wieslawsoltes
Copy link
Owner

It's a bug.

WPF version is no longer developed.

If you can please use Avalonia version from master branch.

@wieslawsoltes
Copy link
Owner

@stefmancio This is issue not with Core2D but with WPF clipping the drawing area. This is probably fixable but it's a lot of work to implement the controls.
WPF-Resizing-Issue

@wieslawsoltes
Copy link
Owner

The source of this issue is in how WPF handles layout for ZoomBorder control responsible for pan and zoom functionality.

So to fix this we need to fix ZoomBorder.

https://github.com/wieslawsoltes/PanAndZoom/blob/ba4a963e99880ddb2ceadf1b9c76569ab7ebb863/src/Wpf.Controls.PanAndZoom/ZoomBorder.cs#L18

Otherwise you can replace ZoomBorder with ScrollViewer but you will lose pan and zoom functionality, also you need to implement proper input handling.

@stefmancio
Copy link
Author

stefmancio commented Apr 21, 2020

@stefmancio This is issue not with Core2D but with WPF clipping the drawing area. This is probably fixable but it's a lot of work to implement the controls.
WPF-Resizing-Issue

I though was this the issue.. I just tried to ask, hoping fo different answer :)
I will take a look at ZoomBorder 'cause i need pan and zoom and i have to stay wpf due to the directive they gave me, thank you very much!

@wieslawsoltes
Copy link
Owner

I though was this the issue.. I just tried to ask, hoping fo different answer :)
I will take a look at ZoomBorder 'cause i need pan and zoom and i have to stay wpf due to the directive they gave me, thank you very much!

As I was investigating the pan and zoom issue I have remembered that this was an issue long time ago. Good luck finding solution.

I think to fix pan and zoom one has to take different approach. I have nice pan and zoom control for AvaloniaUI, it can probably be converted to WPF (not a quick and simple but doable task).
https://github.com/wieslawsoltes/Draw2D/blob/c00a2bfc0aad0a0a13396da6623e6652ae4caaa8/src/Draw2D/Controls/ZoomControl.cs#L16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants