Exemplo n.º 1
0
        public override IWindowInfo CreateWindowInfo()
        {
            ComponentApplication instance = ComponentApplication.Instance as ComponentApplication;

            if (instance != null)
            {
                if (!defaultWindowSet)
                {
                    instance.GetWindow().WindowPositionSize = new Rectangle(0, 0, 1, 1);
                    instance.GetWindow().BackgroundColor    = new Color(0, 0, 0, 0);
                    instance.GetWindow().Hide();
                    defaultWindowSet = true;
                }

                Window = new Window();
                Window.Show();
            }
            NUIWindowInfo = new NUIWindowInfo(Window);
            return(NUIWindowInfo);
        }
Exemplo n.º 2
0
        public override IWindowInfo CreateWindowInfo()
        {
            ComponentApplication instance = ComponentApplication.Instance as ComponentApplication;

            if (instance)
            {
                instance.RegisterFrameComponent(this);
                if (instance.GetFrameComponentCount() == 1)
                {
                    Window = instance.GetWindow();
                }
                else
                {
                    Window = new Window();
                }
            }
            NUIWindowInfo = new NUIWindowInfo(Window);
            return(NUIWindowInfo);
        }