ExControls 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ExControls --version 2.0.0
                    
NuGet\Install-Package ExControls -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ExControls" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ExControls" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ExControls" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ExControls --version 2.0.0
                    
#r "nuget: ExControls, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ExControls@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ExControls&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ExControls&version=2.0.0
                    
Install as a Cake Tool

Extended controls for Windows Forms.

This library features extensions over some of the classic controls, most of which expand their ability to customize visuals and colors. The ExControls library was originally created as part of the GVDEditor program for the dark mode of the graphical interface.

These controls have been extended:

  • ComboBox (also its variant in ToolStrip and DataGridView)
  • DateTimePicker (partial)
  • GroupBox
  • CheckBox (also its variant in DataGridView)
  • CheckedListBox
  • MaskedTextBox
  • NumericUpDown
  • RadioButton
  • TabControl
  • TextBox

These controls have been added:

  • LineSeparator
  • TitleBar (custom title bar of ExForm with the main menu)

These components have been extended:

  • FolderBrowserDialog

Themes

ExTheme is a color palette. Ex* controls implement IThemeable and style themselves; ExThemer.Apply(form.Controls, theme) walks the controls. Controls outside the library (DataGridView, ToolStrip, Panel…) are styled by handlers registered with ExThemer.Register<T>.

Custom title bar

ExTitleBar placed directly on an ExForm (docked to the top) replaces the system caption: the window icon on the left, the window buttons on the right and controls such as the main MenuStrip in between (in a narrow window it collapses into ☰). The system frame stays (shadow, Aero Snap, Snap Layouts, animations); the free space of the title bar and empty parts of its tool strips drag the window. It works on Windows 10+ with any FormBorderStyle except None; TitleBarBackColor and TitleBarForeColor of the form color the title bar (an active window otherwise follows the Windows accent color on title bars), FormStyle (Mica…) shows only in the system caption. The designer shows the form without the system caption and frame, so the designed ClientSize matches the runtime window. Do not use TextBox.PlaceholderText on an ExForm with UseCompositedPainting (WS_EX_COMPOSITED repaints it endlessly) - use ExTextBox.HintText.

Visual Studio designer

In .NET projects the package brings its own designer extension (collection editor of ExOptionsView.Panels), Visual Studio loads it automatically.

Breaking changes in 2.0

  • System.Linq.Enumerable extensions renamed to ExEnumerable.
  • IsExternalInit polyfill (.NET Framework) is internal.
  • Removed unused ExStyle, ExStyleManager, IStylable, ISupportsDefaultStyle, ExApplication, ExAppTheme, ExStyleOld (members moved to ExComboBoxStyle) and the unfinished ExFormDesigner (replaced by ExTitleBar).
  • ExTools.SetTitlebarAndBorderColor(IntPtr, ...) no longer swaps the text and border colors (wrong DWM attribute numbers, the Form overload compensated them).
  • ExForm.DarkTitleBar and TitleBarBackColor no longer reset each other (the caption color takes precedence), empty title bar colors restore the system colors also after the form is shown.

License

MIT. Toolbox icons come from .NET Windows Forms and Fluent UI System Icons (both MIT), see THIRD-PARTY-NOTICES.md in the package.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed.  net10.0-windows7.0 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.0 48 12/2/2026
2.1.0 76 11/21/2026
2.0.0 95 10/25/2026
1.0.0 324 6/22/2023
1.0.0-beta 191 6/21/2023