Ejemplo n.º 1
0
        void Start()
        {
            VRSettings.renderScale = 1.5f;
            IElementsFactory elementsFactory = this.GetComponent <ElementsFactory>();

            HelloWorldModel vm             = new HelloWorldModel();
            IPage           page173        = new Page(this.MainPage);
            IStackLayout    stackLayout614 = new StackLayout(this.MainPage);
            ILabel          label900       = elementsFactory.CreateLabel("Tap the button");

            stackLayout614.AddElement(label900);
            ILabel label151 = elementsFactory.CreateLabel("{{ message }}");

            vm.message.Subscribe((x) =>
            {
                label151.Text = vm.message.Value;
            });
            stackLayout614.AddElement(label151);

            IButton button342 = elementsFactory.CreateButton("TAP");

            button342.AddOnClick(vm.onTap);
            stackLayout614.AddElement(button342);
        }