/// <summary> /// Initialize a new instance <see cref="ListView"/> /// </summary> public ListView() { Background = Color.NotSet; Foreground = Color.NotSet; headerForeground = Color.Yellow; summaryText = string.Empty; showSummary = false; AutoSize = false; showGridLine = true; columns = 1; FocusForeground = Color.Black; FocusBackground = Color.Cyan; ColumnHeaders = new ColumnHeaderCollection <T>(this); Items = new ListViewItemCollection <T>(this); gridBorderChars = new GridSpanBorderChars('╔', '═', '╗', '║', '║', '╚', '═', '╝', '╤', '╢', '╧', '╟', '│', '─', '┼', '┬', '┤', '┴', '├', '┌', '┐', '┘', '└'); groupBase = new ListViewGroupBase <T>(this) { borderColor = Application.SystemColors.BorderColor, borderChars = gridBorderChars, }; OnFocusChanged += InternalFocusChanged; }
/// <summary> /// Initialize a new instance <see cref="Grid"/> /// </summary> public Grid() { ColumnDefinitions = new GridColumnDefinitionCollection(this); RowDefinitions = new GridRowDefinitionCollection(this); borderColor = Application.SystemColors.BorderColor; gridInfos = new List <GridInfo>(); gridBorderChars = new GridSpanBorderChars('┌', '─', '┐', '│', '│', '└', '─', '┘', '┬', '┤', '┴', '├', '│', '─', '┼', '┬', '┤', '┴', '├', '┌', '┐', '┘', '└'); }