Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/Eto.Wpf/Forms/WpfWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,13 @@ public override void AttachEvent(string id)
// this is a trick to achieve similar behaviour as in WinForms
// (IsVisibleChanged triggers too early, we want it after measure-lay-render)
Control.Dispatcher.BeginInvoke(new Action(() =>
Callback.OnShown(Widget, EventArgs.Empty)),
sw.Threading.DispatcherPriority.ContextIdle, null);
{
if (Widget.IsDisposed)
return;
Callback.OnShown(Widget, EventArgs.Empty);

}),
sw.Threading.DispatcherPriority.ContextIdle, null);
}
};
break;
Expand Down
Loading