-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add KeepCenterOnSizeChanged attached property. #818
base: master
Are you sure you want to change the base?
Conversation
In default, set Window.SizeToContent to Width or Height or WidthAndHeight, when the content size changed, the window will not re-center to screen or owner. After add this attached property, it will auto re-center.
When typing in multi-line Commit 6c05c45 fix this issue. |
Have you considered the case where the user manually resizes or moves the window @GF-Huang |
@NaBian I found that when user resize the window, |
Why still not merge? 😅 |
In default, set
Window.SizeToContent
toWidth
orHeight
orWidthAndHeight
, when the content size changed, the window will not re-center to screen or owner. After add this attached property, it will auto re-center.