public override IWindowInfo CreateWindowInfo() { ComponentApplication.Instance.RegisterFrameComponent(this); if (ComponentApplication.Instance.GetFrameComponentCount() == 1) { Window = ComponentApplication.Instance.GetWindow(); } else { Window = new Window(); } NUIWindowInfo = new NUIWindowInfo(Window); return(NUIWindowInfo); }
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); }