.NET Framework and .NET
The package contains three builds of the library: .NET Framework 4.8 (lib/net48), .NET 8 and .NET 10
(lib/net8.0-windows7.0, lib/net10.0-windows7.0). NuGet picks the one that matches the project, the source code
and the API are the same with the few exceptions below.
Dependencies
| Build | Dependencies |
|---|---|
| .NET 8 and .NET 10 | Windows Forms (Microsoft.WindowsDesktop.App.WindowsForms), Microsoft.Windows.Compatibility, Microsoft.WinForms.Designer.SDK |
| .NET Framework 4.8 | System.Design, System.Drawing.Design from the framework, System.Resources.Extensions |
System.Resources.Extensions reads the resources of the library (for example the images of the ExPropertyGrid tool
strip), which are compiled preserialized like in the .NET builds.
API differences
| Type or member | .NET Framework | .NET |
|---|---|---|
| ExFolderBrowserDialog | The folder dialog of Windows Vista and newer. | Not present, FolderBrowserDialog already shows that dialog. |
ExEnumerable.FirstOrDefault and LastOrDefault with a default value |
Added by the library. | Part of LINQ since .NET 6, the library doesn't add them. |
ExTextBox.HintText |
Works. | Works; TextBox.PlaceholderText exists too, but repaints a composited window endlessly. |
The library also contains internal polyfills for .NET Framework (ArgumentNullException.ThrowIfNull, nullable
attributes, IsExternalInit), which projects using the library don't see.
The API reference on this website is generated from the .NET 10 build, so it doesn't list
ExFolderBrowserDialog.
Visual Studio designer
The Windows Forms designer works differently for the two frameworks, see Visual Studio designer:
- In .NET Framework projects the designer runs in the Visual Studio process and uses the designers and editors in
ExControls.dlldirectly. - In .NET projects the designer runs in a separate process and loads editors only from the
Design/WinFormsfolder of the package. The package contains this extension only for the .NET builds.
The toolbox of .NET projects looks the icon of a control up only in the assembly of the control, so the library embeds
its own icons for all controls. In .NET Framework projects the controls derived from WinForms controls show the icons of
those controls, for example ExButton the icon of Button.
Windows versions
The look doesn't depend on the framework, but some features depend on the version of Windows:
| Feature | Windows |
|---|---|
Dark scroll bars (DarkScrollBars, SetDarkScrollBars), ExForm.DarkTitleBar |
10 version 1809 and newer |
The custom title bar (ExTitleBar) |
10 and newer |
ExForm.TitleBarBackColor in the system caption, TitleBarBorderColor, CornersType, FormStyle |
11 |
On older versions these properties have no effect and the custom title bar is a plain panel.