OnPreCreate() method is called before OnCreate() always. If the Window
is created in OnPreCreate(), User doesn't have to consider the call
sequence of base.OnCreate() and LoadApplication() methods. Because
the Window will be prepared before OnCreate() is called.
Change-Id: I4c9f1e9507acc00850848274309409e884573e59
}
}
- protected override void OnCreate()
+ protected override void OnPreCreate()
{
- base.OnCreate();
+ base.OnPreCreate();
Application.ClearCurrent();
CreateWindow();
}
{
if (null == MainWindow)
{
- throw new NullReferenceException("Call base OnCreate() method before loading the application.");
+ throw new NullReferenceException("MainWindow is not prepared. This method should be called in OnCreated().");
}
if (null == application)
{