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

External / Multiple Monitors #2

Closed
Marv51 opened this issue Jul 26, 2016 · 3 comments
Closed

External / Multiple Monitors #2

Marv51 opened this issue Jul 26, 2016 · 3 comments

Comments

@Marv51
Copy link

Marv51 commented Jul 26, 2016

After disconnecting an external monitor from my laptop, windows are now not visible anymore/created off screen.

The saved Configuration contains:
<Item Id="ProjectView_ProjectView.Left" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">2806.0</Item>

Is clearly off screen screen when I work with my external monitor disconnected.

From a brief look at the code I could maybe hock the ApplyingProperty event to check if width, height, left and right are valid? Do you have anything like that laying around?

@Marv51 Marv51 changed the title external/multiple monitors External / Multiple Monitors Jul 26, 2016
@anakic
Copy link
Owner

anakic commented Jul 26, 2016

Hey Marv! Ah, I see the issue. The ApplyingProperty event does not provide you with the value that's going to be applied. It's a simple change, though, I'll go ahead and make it right now.

@anakic
Copy link
Owner

anakic commented Jul 26, 2016

Done, wanna give it a try? You can read and change the value that's going to be set now using the eventargs of the ApplyingPropertyevent.

@Marv51
Copy link
Author

Marv51 commented Jul 27, 2016

Thanks for your incredible fast help.
I think I have it working. If your interested, I uploaded my implementation here: https://gist.github.com/Marv51/6bb2307582700a287cb882e81c9b9eeb

@Marv51 Marv51 closed this as completed Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants