Browse Source

Merge branch 'master' into hackfix-rangebase-validatedouble

pull/3285/head^2
Jumar Macato 7 years ago
committed by GitHub
parent
commit
671e22539f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Avalonia.Controls/TopLevel.cs

6
src/Avalonia.Controls/TopLevel.cs

@ -269,6 +269,12 @@ namespace Avalonia.Controls
/// </summary>
protected virtual void HandleClosed()
{
var logicalArgs = new LogicalTreeAttachmentEventArgs(this);
((ILogical)this).NotifyDetachedFromLogicalTree(logicalArgs);
var visualArgs = new VisualTreeAttachmentEventArgs(this, this);
OnDetachedFromVisualTreeCore(visualArgs);
(this as IInputRoot).MouseDevice?.TopLevelClosed(this);
PlatformImpl = null;
OnClosed(EventArgs.Empty);

Loading…
Cancel
Save