public DebugConsoleView() { this.InitializeComponent(); #if WINDOWS_PHONE_APP this.Window.WindowEdgeSnapBehavior = WindowEdgeSnapBehavior.None; this.LayoutGrid.Children.Remove(this.Window); var vb = new Viewbox(); var sg = new Grid(); sg.Children.Add(this.Window); vb.Child = sg; this.LayoutGrid.Children.Insert(0, vb); this.SizeChanged += (s, e) => { sg.Width = this.ActualWidth * 2; sg.Height = this.ActualHeight * 2; }; #endif this.DataContext = _viewModel = DebugConsoleViewModel.Instance; VisualStateManager.GoToState(this, "Expanded", false); this.DefaultStyleKey = typeof(DebugConsoleView); DebugTextBox.Text = _unFlushedLines.ToString(); _unFlushedLines.Length = 0; }
public DebugConsoleToolWindow() : base(null) { // TODO: put this in the resources this.Caption = "Package Manager Debug Console"; this.BitmapResourceID = 301; this.BitmapIndex = 0; _active = false; _viewModel = new DebugConsoleViewModel(); _handler = new EventHandler<DebugConsoleMessageEventArgs>(HandleMessage); _debugWindow = new DebugWindow() { DataContext = _viewModel }; this.Content = _debugWindow; }
public DebugConsoleToolWindow() : base(null) { // TODO: put this in the resources this.Caption = "Package Manager Debug Console"; this.BitmapResourceID = 301; this.BitmapIndex = 0; _active = false; _viewModel = new DebugConsoleViewModel(); _handler = new EventHandler <DebugConsoleMessageEventArgs>(HandleMessage); _debugWindow = new DebugWindow { DataContext = _viewModel }; this.Content = _debugWindow; }