- When preload application, the show is called before the appcore is created.
- Call the window show at OnInit and notify the app core
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
// Initialize DisposeQueue Singleton class. This is also required to create DisposeQueue on main thread.
DisposeQueue.Instance.Initialize();
+ // Notify that the window is displayed to the app core.
+ if (NUIApplication.IsPreLoad)
+ {
+ Window.Instance.Show();
+ }
+
if (_applicationInitEventHandler != null)
{
NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();
private Position2D _windowPosition2D = null;
private TransitionOptions transitionOptions;
+ private static bool isPreLoad = false;
/// <summary>
/// The default constructor.
{
Interop.Application.PreInitialize();
ThemeManager.EnsureDefaultTheme();
+ isPreLoad = true;
}
/// <summary>
transitionOptions = value;
}
}
+
+ /// <summary>
+ /// Check if it is loaded as dotnet-loader-nui.
+ /// </summary>
+ static internal bool IsPreLoad
+ {
+ get
+ {
+ return isPreLoad;
+ }
+ }
}
/// <summary>