What's new in 4.2
Wisej.NET 4.2.0+
Wisej.NET 4.2 is the largest feature release since 4.0. It adds a family of modern controls for dashboards, planning boards and cards, a RichTextBox editor, visual DataGridView columns and column groups, two authentication components, OAuthClient and Passkey, and the EmbedPDF viewer for the PdfViewer. Sessions are bound more tightly to the browser that created them, the Theme Builder runs on Windows, macOS and Linux, and Hybrid applications get a single new project template with Windows and Linux clients that no longer need .NET MAUI.
For most projects, moving from 4.1 is a package update. The changes worth reading before you do are listed under Upgrading from 4.1.
Getting Started
Wisej.NET 4.2 is available on NuGet as the Wisej-4 package, for the same targets as 4.1: .NET Framework 4.8 and .NET 8, 9 and 10. Update the package reference, rebuild, and reopen the designer.
<PackageReference Include="Wisej-4" Version="4.2.*" />
Install the 4.2 Visual Studio extension from wisej.com/builds as well, as described in Getting Started.
Modern Controls
Twenty-four new controls built for the screens business applications are expected to have today. They are ordinary Wisej.NET controls: drop them on a form, set their properties in C# or VB.NET, data-bind them and handle their events on the server. Each renders as a single client widget that follows the active theme, with no JavaScript and no third-party charting library.

| Group | Controls |
|---|---|
| Data Visualization | ChartView, Sparkline, RadialGauge, MeterBar, KpiPanel, HeatmapCalendar, MapView |
| Planning & Workflow | GanttView, SchedulerView, KanbanBoard, Timeline, Stepper, ApprovalTrail, OrgChart |
| Content | ActionCard and ActionCardList, Avatar and AvatarGroup, ChipLabel, EmptyState, DiffViewer |
| Input & Editors | SegmentedButton and ChipGroup, RichTextBox, DropZone, CommandPalette, QueryBuilder |
The Northwind Dashboard above is a complete application built from them: see its samples, or build it step by step in the LearnWisej course.
RichTextBox
RichTextBox is a rich text editor with a configurable toolbar: fonts and sizes, bold, italic, underline, strikethrough, superscript and subscript, text and highlight colors, paragraph, heading, quote and code blocks, bulleted and numbered lists with indent levels, alignment, links, tables and pictures, with undo and redo. The content is loaded and saved as HTML, plain text, RTF or Markdown (RichTextBoxStreamType), and the selection can be read and replaced on the server like a TextBox's, with SelectedText and SelectedHtml. It is listed with the modern controls and in the Editors section.
DataGridView: Visual Columns and Column Groups
Six new column types draw something other than text in a DataGridView cell: DataGridViewActionsColumn (a row of command buttons), DataGridViewAvatarColumn, DataGridViewChipColumn, DataGridViewMeterColumn, DataGridViewSparklineColumn and DataGridViewSubtitleColumn (a title and a second line). They take their values from the cell like any other column, so they work with data binding and virtual mode.
Column groups put a header row above the column headers that spans several columns. Add DataGridViewColumnGroup objects to the new DataGridView.Groups collection, assign a column's Group, and set the band's height with ColumnGroupHeadersHeight. The grid raises ColumnGroupAdded, ColumnGroupRemoved, ColumnGroupChanged, ColumnGroupHeaderMouseClick and ColumnGroupHeaderMouseDoubleClick, and HitTestInfo.Group tells which group a point is over. See DataGridViewColumnGroup in the API reference.
Authentication: OAuthClient and Passkey
Two non-visual components bring sign-in into the framework, with the security work — PKCE, state, nonce and issuer checks, token storage, WebAuthn verification — done for you.
- OAuthClient signs the user in with an external identity provider over OAuth 2.0 and OpenID Connect: Google, GitHub (and GitHub Enterprise), Microsoft Entra ID, GitLab, or any custom provider. It runs the flow in a redirect or a popup, puts the signed-in user on
Application.User, keeps and refreshes the access token, and reads the client secret from environment variables, a secrets file or a vault rather than from code. - Passkey registers and verifies WebAuthn passkeys, so users sign in with Face ID, Windows Hello, a fingerprint or a security key instead of a password. Credentials are kept by your own
IPasskeyCredentialStore; the guide includes a complete SQL Server implementation.
The individual guides are OAuthClient, OAuth Providers, Passkey and Passkey Credential Store. The reference is the new Authentication category of the API.
PdfViewer: EmbedPDF
The new PdfViewerType.EmbedPdf loads the EmbedPDF viewer into the PdfViewer: it renders the same in every browser, follows the application's language, can be themed light or dark with ViewerTheme, and lets the user annotate the document and fill in its forms. ReadOnly hides the editing tools, ViewerOptions passes any EmbedPDF option from C#, and SaveAsync() returns the document as the user left it.
Session Security
- Binding the session to a browser key. Setting
validateClientto"key"ties each session to a non-extractable Web Crypto key that the browser creates and never sends. Every request is signed, so a copied session ID and client ID, or a captured request, cannot be used anywhere else. See Binding the session to a browser key and thevalidateClientsetting. - Man-in-the-middle and man-in-the-browser. With the browser key, a session can no longer be stolen and used elsewhere.
- Man-in-the-middle: an attacker who intercepts the traffic, for example behind a compromised proxy or a forged certificate, gets nothing they can use. A captured request cannot be replayed, because its counter is spent. A modified request is rejected, because the signature covers the whole message. A new request cannot be forged without the private key.
- Man-in-the-browser: malware or an extension running in the user's browser cannot take the session away, because the key cannot be exported. Session IDs, client IDs and cookies lifted from the browser are worthless on any other machine.
- Limits: what neither attack can be stopped from doing is act through the user's own open page. Script injected into that page, by a malicious extension or by an active attacker who can rewrite the responses, can still ask the browser to sign while it runs. HTTPS and a Content Security Policy remain the defence there.
- Client secret cookie. With
validateClienton (the default), a new session also gets a secret held in anHttpOnlycookie that scripts cannot read. Every request that restores the session must carry it. On HTTPS the cookie is partitioned, so applications embedded in another site's iframe keep working with third-party cookies blocked. - WebSocket connections are bound to one session. The upgrade request names the session and, with
validateClient, must carry the client secret cookie; a message on that connection cannot address any other session. - Session IDs across tabs. With
"local"session storage, a tab holding an outdated session ID no longer removes the newer ID another tab refreshed (afterApplication.RefreshSessionId(), for example after an OAuth sign-in), and a"local"page keeps its session across F5 after a"session"page ran in the same tab.
New Public APIs
Members that were internal or missing, now public, mostly for driving windows and dialogs from server code and from tests:
| Type | New members |
|---|---|
| MessageBox | Text, Caption, Buttons, Icon, DefaultButton, Modal, AllowHtml, Owner, IsClosed, IsThreadModal, and Close(DialogResult), which closes an open message box from the server exactly like a click on one of its buttons. |
| Form | IsModal, IsThreadModal |
| Page | Activate(), Close() |
| Application | ActiveWindow, and OpenWindows, a WindowCollection of the open forms and pages |
| Control | PerformValidation(), PerformValidation(bool) |
| MenuItem | PerformPopup() |
| ContextMenu | AttachedControls: every control whose ContextMenu is this menu. SourceControl is now correct for a menu shared by several controls. |
| ClientBrowser | About forty new properties read at startup: preferred Languages and Locale, Calendar, HourCycle and NumberingSystem, available screen size, color depth and gamut, orientation, processor count and device memory, pointer and touch input, accessibility preferences (PrefersReducedMotion, Contrast, IsForcedColors, …), connection quality, IsOnline, IsSecureContext, IsInFrame, IsWebDriver, privacy signals, and the User-Agent Client Hints. IsSecure, which was always false, is now reported, and IsDarkMode follows the browser after startup. |
| PdfViewer | ViewerTheme, ReadOnly, ViewerOptions, SaveAsync() |
| Configuration | ValidateClientKey |
Included from 4.1.7 and 4.1.8
4.2 carries everything released in the 4.1 line up to 4.1.8, so code written against 4.1.8 compiles unchanged. The public API added in 4.1.7:
| Type | New members |
|---|---|
| DateTimePicker | ShowTimePicker adds a time panel with hour, minute and second spinners (and an AM/PM selector) below the drop-down calendar. TimePickerStyle chooses spinners or drop-down lists, MinuteInterval limits the minutes to steps of 1 to 30, and PredefinedTimes lists times of day to pick with one click. |
| TimePickerStyle | New enumeration: Spinner, DropDown. |
| ToolBar | Display shows the buttons' icon, text or both; Spacing sets the space between buttons, overriding the theme. |
| ToolBarButtonStyle | Label, a non-interactive button that shows text and an image. |
| ToolBarExtensions | Spacing(), the markup equivalent of ToolBar.Spacing. |
| TreeView | ButtonAlign puts the expand and collapse buttons on the left or the right, overriding the theme. |
The fixes from 4.1.6 to 4.1.8 are included too. Among them: the license server is contacted over HTTPS; NumericUpDown no longer accepts a decimal point when DecimalPlaces is 0; a virtual ListView without a RetrieveVirtualItem handler works again; and data requests from virtual grids and lists run without the session lock. Callbacks registered with Application.Post during such a request run at the end of the next regular request.
The complete 4.2 reference is under Developer API, with 4.1 and 3.5 still available from the version picker. The API Constellation draws the whole reference as a map you can search.
Theme Builder
The Theme Builder is rebuilt on .NET 10 and runs on Windows, macOS and Linux as a standalone application. It opens in the skin of the operating system it runs on — Glass on macOS, a WinUI-style skin on Windows and a GNOME-style skin on Linux — each in light and dark, and the color mode menu switches between System, Light and Dark or picks another skin. The preview has developer tools (Web Inspector on macOS), the splash screen is gone, and the Theme Builder no longer requires a license.
Hybrid
The Hybrid project wizard is rebuilt as one Hybrid Application template. A single dialog asks where the application runs (on the device or on a server), a starting layout (blank, master-detail, tabs or dashboard) and the target platforms, shows a live preview, and creates the application project together with its client. The same template is used by Visual Studio and by dotnet new.
- Windows without MAUI. The 4.2 Windows client no longer needs the .NET MAUI workload, and a Windows (.NET Framework 4.8) target joins the .NET 10 one.
- Linux client. A new Linux target builds a GTK 3 / WebKitGTK client.
- Offline everywhere. Local (device) applications run offline on every platform, including Windows and Linux, and the embedded server picks a free port, so several Hybrid applications can run side by side.
- .NET 10 and .NET Framework 4.8. Hybrid 4.2 projects target those two; .NET 9 clients are no longer generated.
Fixes
- Session lock. The session lock was rewritten after five defects were found, including a thread holding one session's lock being treated as holding every session's lock,
TryEnterignoring its timeout, and an interrupted thread leaving the lock unusable. The modal loop now restores the full lock depth when a dialog closes. - Memory growth in large applications. Render calls are bound statically, so applications with more than 128 control classes no longer grow the runtime binder's cache, and disposed objects no longer leave entries in the client's binding table.
- Request validation cookies. The per-session validation cookie is set only when
validateResourcesis on, and the cookies of expired sessions are removed, instead of accumulating in a browser that is never closed. - Disposed windows. A form disposed from another thread while it was being rendered, for example a dialog closed from server code, is now removed from the browser.
- Argument checks. Invalid values on several controls throw
ArgumentOutOfRangeExceptionas documented, instead of aFormatExceptionraised while building the message.
Upgrading from 4.1
- Graphics package.
SystemDrawing-NTreplacesManaged.System.Drawingas the package that provides managed graphics, measures text and renders SVG. The SVG-NET and ExCSS libraries are no longer used. A project that referencesManaged.System.Drawingdirectly should referenceSystemDrawing-NTinstead. On .NET,ClientTheme.GetImage()returns an SVG image object for SVG theme images rather than a rasterized bitmap. - New dependencies. The
Wisej-4package now depends onMicrosoft.IdentityModel.JsonWebTokensandMicrosoft.IdentityModel.Protocols.OpenIdConnect(8.15 or later) andSystem.Formats.Cbor(8.0.2 or later), used by the authentication components. On .NET Framework 4.8 the minimum versions ofMicrosoft.Bcl.HashCode,System.Buffers,System.Memory,System.Runtime.CompilerServices.UnsafeandSystem.ValueTupleare raised. - Cookies are required. With
validateClienton, which is the default, the browser must accept the session'sHttpOnlycookie. A browser that blocks every cookie is now sent tonotAvailableUrl. Proxies and gateways in front of the application must pass cookies through, including on the WebSocket upgrade request. - WebSocket origin check removed. The origin check on WebSocket upgrades introduced in 4.1.8 rejected legitimate connections behind TLS-terminating proxies and load balancers, and is removed. The connection is now bound to its session instead.
- Reading
InputTypehas no side effect. ReadingTextBox.InputTypeorMaskedTextBox.InputTypeno longer stores a newInputTypein the control; it is stored the first time one of its properties is set. Designer code such astextBox1.InputType.Type = TextBoxType.Passwordworks as before. - Nothing else changes. Project files,
.resxresources and designer files written for 4.1 open unchanged in 4.2.
Earlier Releases
The notes for 4.1 are under What's new in 4.1, and release notes for every version back to 2.0 are collected under Releases.