async Task Watch()
        {
            while (true)
            {
                var moment = DateTime.UtcNow;

                await Task.Delay(500);

                if (LastDomUpdated > moment)
                {
                    continue;
                }
                if (LastTreeUpdated > LastDomUpdated)
                {
                    continue;
                }
                if (!IsOpen())
                {
                    continue;
                }

                LastTreeUpdated = DateTime.UtcNow;
                await InspectionBox.CreateTreeView();

                await InspectionBox.SelectCurrentNode();

                await InspectionBox.PropertiesScroller.Load();
            }
        }
Example #2
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;
        }