private void Initialize() { _debugConsoleView = new DebugConsoleView(); _popup = new Popup { Child = _debugConsoleView, }; var panel = Window.Current.Content.GetFirstDescendantOfType<Panel>(); if (panel != null) { panel.Children.Add(_popup); } _popup.IsOpen = true; UpdateLayout(); Window.Current.SizeChanged += this.OnWindowSizeChanged; }
private void Initialize() { _debugConsoleView = new DebugConsoleView { Width = Window.Current.Bounds.Width, Height = Window.Current.Bounds.Height, }; _popup = new Popup { Child = _debugConsoleView, }; var panel = Window.Current.Content.GetFirstDescendantOfType<Panel>(); if (panel != null) { panel.Children.Add(_popup); } _popup.IsOpen = true; Window.Current.SizeChanged += OnWindowSizeChanged; }