Exemple #1
0
        public async Task PrepareRuntimeRoot()
        {
            CreateStyles();

            var wrapper = new Stack(RepeatDirection.Horizontal).Id("RenderRootStack");

            UIRuntime.PageContainer = UIRuntime.RenderRoot.Id("PageContainer");

            await wrapper.Add(View.Root.Height(Device.Screen.Height));

            await wrapper.Add(InspectionBox = new InspectionBox { Id = "ZebbleInspectionBox" }, awaitNative : true);

            await InspectionBox.Initialize();

            UIRuntime.RenderRoot = wrapper;
            wrapper.IsAddedToNativeParentOnce = true;
        }