We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create new AdonisWindow with SizeToContent="WidthAndHeight" and WindowStartupLocation="CenterOwner"
Owner = parent ShowDialog()
window is not centered :(
The text was updated successfully, but these errors were encountered:
It become Help yourself thing :) window.SizeChanged += (s, e) => CenterOwner(window);
private void CenterOwner( Window w) { if (w.Owner != null) { double top = w.Owner.Top + ((w.Owner.Height - w.ActualHeight) / 2); double left = w.Owner.Left + ((w.Owner.Width - w.ActualWidth) / 2); w.Top = top < 0 ? 0 : top; w.Left = left < 0 ? 0 : left; } }
Sorry, something went wrong.
No branches or pull requests
Create new AdonisWindow with SizeToContent="WidthAndHeight" and WindowStartupLocation="CenterOwner"
Owner = parent
ShowDialog()
window is not centered :(
The text was updated successfully, but these errors were encountered: