Convert TopLevel.Ready into event

This commit is contained in:
Artyom
2020-09-23 01:19:31 +03:00
committed by BDisp
parent db32add954
commit 47a2020bf4
3 changed files with 11 additions and 12 deletions

View File

@@ -96,10 +96,14 @@ namespace UICatalog {
scenario.Init (Application.Top, _baseColorScheme);
scenario.Setup ();
scenario.Run ();
_top.Ready += () => {
static void ReadyHandler ()
{
_rightPane.SetFocus ();
_top.Ready = null;
};
_top.Ready -= ReadyHandler;
}
_top.Ready += ReadyHandler;
#if DEBUG_IDISPOSABLE
// After the scenario runs, validate all Responder-based instances