Browse Source
Merge pull request #11978 from AvaloniaUI/fixes/ensure-rendering-has-started-when-a-window-is-opened
Ensure render is started when a window opens.
release/11.0.0-rc2.1
Dan Walmsley
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
3 deletions
-
src/Avalonia.Controls/Window.cs
|
|
|
@ -715,8 +715,8 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
SetWindowStartupLocation(owner); |
|
|
|
|
|
|
|
PlatformImpl?.Show(ShowActivated, false); |
|
|
|
StartRendering(); |
|
|
|
PlatformImpl?.Show(ShowActivated, false); |
|
|
|
OnOpened(EventArgs.Empty); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -791,9 +791,8 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
SetWindowStartupLocation(owner); |
|
|
|
|
|
|
|
PlatformImpl?.Show(ShowActivated, true); |
|
|
|
|
|
|
|
StartRendering(); |
|
|
|
PlatformImpl?.Show(ShowActivated, true); |
|
|
|
|
|
|
|
Observable.FromEventPattern( |
|
|
|
x => Closed += x, |
|
|
|
|