internal Panel CreateIssuePanel(TextBox help) { m_help = help; m_grid = new DataGrid(); m_grid.AutoGenerateColumns = false; m_grid.IsReadOnly = true; // Columns m_grid.AddColumn("Id", "Id"); m_grid.AddColumn("Type", "Type"); m_grid.AddColumn("Description", "Description"); m_grid.AddColumn("Suggestion", "Suggestion"); m_grid.AddButtonColumn(typeof(Issue), "Action", "Action", OnClick); m_leftPanel = new StackPanel(); m_leftPanel.Width = LeftPanelWidth; m_leftPanel.Background = Brushes.LightGray; DockPanel issuePanel = Toolbox.DockTopLeft(null, m_leftPanel, m_grid); return(issuePanel); }