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
On macOS, showing (but not creating) a window inside a dispatcher callback results in a blank window.
The following code in a Window codebehind reproduces the behavior:
Window
protected override void OnPointerReleased(PointerReleasedEventArgs e) { var window = new Window(); Dispatcher.UIThread.Post(() => { window.Content = "Hello"; window.Show(); }); }
If one moves the var window = new Window(); inside the dispatcher callback then the window shows correctly.
var window = new Window();
No response
master
macOS
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
On macOS, showing (but not creating) a window inside a dispatcher callback results in a blank window.
To Reproduce
The following code in a
Window
codebehind reproduces the behavior:If one moves the
var window = new Window();
inside the dispatcher callback then the window shows correctly.Expected behavior
No response
Avalonia version
master
OS
macOS
Additional context
No response
The text was updated successfully, but these errors were encountered: