diff --git a/Ooui.Forms/Forms.cs b/Ooui.Forms/Forms.cs index 235927e..a10929f 100644 --- a/Ooui.Forms/Forms.cs +++ b/Ooui.Forms/Forms.cs @@ -150,5 +150,14 @@ namespace Xamarin.Forms public VisualElement View { get; set; } public Ooui.Element NativeView { get; set; } } + + public static void LoadApplication (Application application) + { + Application.Current = application; + var mainPage = application.MainPage; + if (mainPage != null) { + UI.Publish ("/", application.MainPage.GetOouiElement ()); + } + } } }