-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
ChildWindow position when it appears. #103
Comments
Hi @DeputyOfCopyPaster If I remember correctly you can use the Margin property to define the position of a child window. I don't have a PC at the moment so i could not check it right now. Happy coding Tim |
I don't think so, the Margin isn't a proper way to do that. The ChWindow isn't a static control. thanks in advance! |
Hi @DeputyOfCopyPaster , Workaround
When you close the
But please keep in mind, the Built in soultion Happy coding |
@timunie, hello
I'm just a deputy of CopyPaster and CopyPaster itself is one of deputies of true Programmer. ;) thanks a lot! |
Hi @DeputyOfCopyPaster , I took another gif to show you that it is possible to remember the position (I see you got it and changed your question, but I am already done with the new gif :-) ). Happy coding |
@timunie, hi there |
@DeputyOfCopyPaster, at the moment it is just a PR. I don't know if it will be ever available, @punker76 has to decide 👍 or 👎 |
Why not? Missing of that just deprives ChWindow of some usability, I believe. |
I am not the owner of this repro and don't have write permissions, so I am unable to do. |
never mind, hope owners follow our chat... |
Added `OffsetX` and `OffsetY` DepencyProperty to allow storing the relative position of the child window.
@DeputyOfCopyPaster yes if you uae the latest prerelease |
@timunie, How do I find the latest prerelease? I mean where is prerelease located? |
Hi @DeputyOfCopyPaster , sorry for the late replay. Set this checkmark in your Nuget-Manager: Happy testing |
@timunie, |
Hi @DeputyOfCopyPaster , Happy coding |
@timunie, it seems I've gotten a remembering of ChWindow previous position. |
@DeputyOfCopyPaster it depends on the HorizontalAlignment and VerticalAlignment |
@timunie. I don't see any alignment properties used in your latter demo release. |
the default is center, so the Point (0,0) is in the middle ... |
@timunie, while playing around I've noticed one more thing which brings some discomfort in ChildWindow usage. As practice shows, the left upper ChildWindow's corner (mostly it's icons area) is not sensitive for dragging. In other words it doesn't allow to hide ChildWindow more deeper. So, what do you think about? |
to be honest I don't see a reason why one should move the childwindow out of the parent window. Maybe you should consider to open a new Happy dragging |
@timunie, Yeah, I see you don't know. However, many end users know some reasons. In other words the icon must not interfere to happy dragging of end users. |
@timunie, I decided to make some changes and set the property IsOpen="true", and have seen the following stuff, as per image attached. |
@DeputyOfCopyPaster
But please keep in mind that even this will not solve all the positioning issues you might have. And unfortunatally I don't have the time to rewrite all the stuff needed to archiev your goal.
I hope you understand that I will now leave this issue as it is right now. Happy coding |
hello everyone!
Is there a way to set a certain ChildWindow position when it appears? At the moment it appears exact in the middle of the screen and even I move it to a certain place, next time (after App restart), it appears in the middle of the screen as it was before.
Is there a way to save this position?
thanks in advance!
The text was updated successfully, but these errors were encountered: