Table of Contents

Namespace ExControls

Classes

BoxAndTextRectangle

Represents rectangles of the box and text of the ICheckableExControl.

ComparisonComparer<T>

Wraps a generic Comparison{T} delegate in an IComparer to make it easy to use a lambda expression for methods that take an IComparer or IComparer{T}

ControlExtensions

Extension methods for controls.

DataGridViewExCheckBoxCell

DataGridView cell with a check box that can be drawn in the custom style with its own colors like ExCheckBox.

DataGridViewExCheckBoxColumn

DataGridView column of DataGridViewExCheckBoxCell cells, which can be drawn in the custom style like ExCheckBox.

DataGridViewExComboBoxCell

DataGridView cell with a combo box that can be drawn in the custom style with the state colors of ExComboBoxStyle like ExComboBox.

DataGridViewExComboBoxColumn

DataGridView column of DataGridViewExComboBoxCell cells, which can be drawn in the custom style like ExComboBox.

DataGridViewExComboBoxEditingControl

Represents the hosted combo box control in a DataGridViewComboBoxCell.

EquatableCollection<T>

Provides the base class for a generic collection that supports equality (two collections are equal when they contain equal items in the same order).

ExBindingList<T>

Provides a generic collection that supports data binding and sorting.

ExButton

Extended Button control: in the custom style (DefaultStyle = false) it is flat with border and background colors for the hover, pressed and focus states (ExFlatAppearance).

ExButtonRenderer

This class contains static methods to measure and draw buttons and text into the control graphics. This class cannot be inherited.

ExCalendar

Month calendar control drawn completely by the library (no Win32 MonthCalendar). Used standalone or as the drop-down part of ExDateTimePicker.

ExCategoryAttribute

Category of a property or event in the property grid; a CategoryType gets the localized name of the standard WinForms category.

ExCheckBox

Extended CheckBox control: in the custom style it draws the box, the check mark and the text itself with its own colors, including the text color of a disabled check box.

ExCheckedListBox

Extended CheckedListBox control: in the custom style it draws the items with its own box, check mark, highlight and focus colors.

ExColorSelector

Control that shows the selected color; a click opens a color dialog (Dialog) to change it.

ExComboBox

Extended ComboBox control: in the custom style it draws itself with separate colors for the normal, hover, selected and disabled states (ExComboBoxStyle) and can use dark scroll bars.

ExComboBoxStyle

Class for definition styles for ExComboBox

ExDateTimePicker

Date/time picker drawn completely by the library (no Win32 DateTimePicker). The drop-down part is an ExCalendar. Public API mirrors DateTimePicker so the controls are interchangeable.

ExDescriptionAttribute

Description of a property or event in the property grid, looked up by its key in the resources of WinForms (the language of the descriptions of the standard properties).

ExDockManager

Layout of a window into dockable panels like Visual Studio or Rider: the main content in Document and tool panels (ExDockPanel) docked to the left, right, top or bottom. A zone splits into nested rows and columns of groups, several panels in one group are tabs; splitters resize zones and groups. The user can hide a panel, collapse its group to the strip at the edge (auto-hide), drag it with the docking guides (a compass over a group or the document like in Visual Studio) to another place or to a floating window. SaveLayout() and LoadLayout(string?) keep the layout in a string for the application settings.

ExDockPanel

Tool panel of an ExDockManager (like a tool window in Visual Studio or Rider): a container for the content with a stable Key for the saved layout and a Text shown in the caption, on its tab and on the auto-hide strip. The manager places it into a zone, a floating window or hides it; the panel only hosts the content (usually one control with Fill).

ExDockPanelClosingEventArgs

Data of PanelClosing: the user hides a panel (its close button, its window menu or the floating window); setting Cancel keeps it open.

ExDockPanelEventArgs

Data of an event about an ExDockPanel.

ExDockStrings

Texts of the tool tips and the window menu of ExDockManager panels. The library has no UI texts of its own - the defaults are English, the application sets its translation.

ExDropDownButton

Extended button control with drop down menu.

ExFlatButtonAppearance

Border and background colors of an ExButton in the flat style, including the colors for the mouse and focus states.

ExForm

Extended form. With ExTitleBar as a direct child it replaces the system caption by the title bar.

ExGroupBox

Extended GroupBox control: in the custom style it draws the border with its own color, thickness and style, and the text of a disabled group box in its own color.

ExLabel

Extended Label control: a disabled label draws its text in DisabledForeColor instead of the system gray.

ExLineSeparator

Horizontal or vertical line separating controls, with its own thickness, color and dash style.

ExListBox

Extended ListBox control: in the custom style it draws the border with its own color and thickness, the selected rows in their own background and text colors and a disabled list in its own colors.

ExMaskedTextBox

Extended MaskedTextBox control: in the custom style it draws the border with its own color and thickness, highlighted when the control has focus or is under the mouse.

ExMessageBox

Displays a message window, also known as a dialog box, which presents a message to the user.
It is a modal window, blocking other actions in the application until the user closes it.
A MessageBox can contain text, buttons, and symbols that inform and instruct the user.

ExMessageBoxForm

Represents the dialog window displayed by ExMessageBox.

ExMessageBoxStyle

Specifies style of ExMessageBox.

ExNumericUpDown

Extended NumericUpDown control: in the custom style it draws the border and the up-down buttons itself with its own colors.

ExOptionsPanel

Represents a panel in the ExOptionsView containing one set of options.

ExOptionsView

Represents an options view with a searchable tree of option pages on the left and the selected ExOptionsPanel on the right.

ExOptionsView.ExOptionsTreeView

Tree of the option panels on the left side of ExOptionsView.

ExPropertyChangedEventArgs

Provides data for an event raised when a property value changes: the name of the property and its new value.

ExPropertyGrid

Extended PropertyGrid. Part of this code is from: https://www.codeproject.com/Articles/13342/Filtering-properties-in-a-PropertyGrid

ExRadioButton

Extended RadioButton control: in the custom style it draws the circle, the mark and the text itself with its own colors, including the text color of a disabled radio button.

ExRichTextBox

Extended RichTextBox control: in the custom style it draws the border with its own color and thickness, highlighted when the control has focus or is under the mouse, and uses its own colors when disabled.

ExTabControl

Extended TabControl control: in the custom style it draws the tab headers and the border with its own colors for the normal, active and highlighted tabs.

ExTableLayoutPanel

Extended TableLayoutPanel control: in the custom style it draws the cell borders with its own color and thickness.

ExTextBox

Extended TextBox control: in the custom style it draws the border with its own color and thickness, highlighted when the control has focus or is under the mouse, and uses its own colors when disabled; it can show a hint text and dark scroll bars.

ExTheme

Color theme of controls. Ex* controls apply it through IThemeable, other controls through handlers registered in ExThemer.

ExThemer

Applies a theme to the controls of a form. Controls with IThemeable style themselves; for the others (DataGridView, ToolStrip, Panel…) the application registers a handler through Register<T>(Action<T, ExTheme>) - the handler of the nearest registered base type is used. A control without a handler is not changed and its child controls are not visited.

ExTitleBar

Custom title bar of an ExForm. As a direct child of the form (docked to the top) it replaces the system caption: the window icon (system menu) on the left, the window buttons on the right, the title bar controls (e.g. the main menu) between them and the form text in the free space. The free space and empty parts of tool strips drag the window, their items stay clickable.

ExToolStripComboBox

ToolStrip item hosting an ExComboBox.

ExTools

Contains various stuff for controls and forms.

ExTreeView

Extended TreeView control: nodes can be hidden without removing them (ExTreeNodeCollection) and the tree can use the Explorer theme (Style).

ExTreeViewNodeAddedEventArgs

Provides data for the TreeNodeAdded event.

ExTreeViewNodeRemovedEventArgs

Provides data for the TreeNodeRemoved event.

GeneralExtensions

General extension methods for collections and strings.

InterlockedOperations

Thread-safe lazy initialization.

LinePenEventArgs

Provides data for the LineDrawing events of ExGroupBox and ExLineSeparator: the pen used to draw the line, which the handler can change.

MessageBoxStrings

This class contains a method to get a localized text for MessageBox's button.

OptionsNode

Represents a TreeNode in the TreeView of an ExOptionsView.

OptionsPanelContainer

Represents a panel that can only accept ExOptionsPanel controls and raises an event when such controls are added or removed.

RestrictivePanel<T>

A Panel to which only controls of type T can be added.

RestrictivePanel<T>.RestrictivePanelEventArgs<TC>

Provides data for the ControlAdded and ControlRemoved events.

ShellIcon

Represents a Windows icon, which is a small bitmap image that is used to represent an object. Icons can be thought of as transparent bitmaps, although their size is determined by the system.

SortExtensions

Sorting extension methods with a Comparison<T> delegate.

SystemResources

Reads localized strings from the resources of system assemblies (e.g. System.Windows.Forms).

TabPageChangeEventArgs

Event arguments for the SelectedIndexChanging event.

ToolStripUndoRedoActionChooser

Drop-down with a list of Undo/Redo actions (UndoRedoActionChooser), for example the DropDown of a ToolStripSplitButton. It selects the newest action when it opens and closes when the user chooses an action.

UndoRedoActionChooser

List of Undo/Redo actions like the drop-down of the Undo button in Visual Studio or Office: moving the mouse selects the actions up to the one under the cursor, a click chooses them (FinalCommand, CommandChosen). The line under the list shows the number of selected actions (CountText).

Interfaces

ISearchable

Defines a control with its own text search, used by the search box of ExOptionsView.

IThemeable

A control that styles itself by a theme (including its child controls).

Enums

BeepType

Enum type that enables intellisense on the private Beep method.

CategoryType

Type of category in PropertyGrid.

ExCalendarView

Views of the ExCalendar.

ExDockSide

Side of an ExDockManager where tool panels are docked or collapsed to the auto-hide strip.

ExDockState

State of an ExDockPanel in its ExDockManager.

ExTreeViewStyle

Windows theme of ExTreeView.

FormCornersType

Defines type of form's corner. Works only in Windows 11+.

FormStyle

Defines form's type of style. Works only in Windows 11+.

LineOrientation

Orientation of the LineSeparator.

MessageBoxCmdType

Represents possible MessageBox command types.

ProgressBarColor

Specify style of ProgressBar.

ShellIconSize

Represents the size of ShellIcon.

ShellIconType

Represents the type of ShellIcon.

StyleType

State of a control that a style (ExComboBoxStyle) is used for.

TitleBarHit

Part of the custom title bar of a form at a point - determines what Windows does with the mouse (HitTest(Point)).

WindowsTheme

Specify theme for Windows controls.