상속: Windows.UI.Xaml.Controls.UserControl
        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;
        }
예제 #2
0
        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;
        }